Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test upsteam container images #429

Merged
merged 11 commits into from
Aug 24, 2023
Merged

Commits on Aug 22, 2023

  1. Use --entrypoint to override image entrypoint in podman run

    This makes it possible to run using the same command line regardless of
    the image having an entrypoint set or not.
    
    Also, allow passing arguments to the command inside the container
    
    Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
    ansasaki committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    27978a7 View commit details
    Browse the repository at this point in the history
  2. Add helper function limeconPullImage

    The helper function limeconPullImage will pull an image from a remote
    registry and optionally tag it with a name and tag locally.
    
    Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
    ansasaki committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6d42c35 View commit details
    Browse the repository at this point in the history
  3. Test with verifier and registrar images from registry

    Enable container tests to run against images obtained from registries
    instead of built locally.
    
    Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
    ansasaki committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    5116eb7 View commit details
    Browse the repository at this point in the history
  4. Add plan to test upstream containers

    Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
    ansasaki committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    421abe5 View commit details
    Browse the repository at this point in the history
  5. Test upstream agent image

    Modify containers test plan to test using images from upstream registry
    for the verifier, registrar, and agent.
    
    Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
    ansasaki committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    317296f View commit details
    Browse the repository at this point in the history
  6. Library: Expand Dockerfile path only if not found

    If a Dockerfile for any component is provided via environment variable,
    check if it exists and, only if not found, try to find in
    limeLibraryDir.
    
    Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
    ansasaki committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    685e09f View commit details
    Browse the repository at this point in the history
  7. Library: Use entrypoint to chown certificate dir for agent

    Use --entrypoint to override the image entrypoint in case it has an
    entrypoint set.
    
    The agent needs the certificate directory to be accessible by the
    internal 'keylime' user in order to drop privileges inside the
    container.  For this, it is necessary for the files owner uid to match
    the internal 'keylime' uid.
    
    Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
    ansasaki committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    677e5e9 View commit details
    Browse the repository at this point in the history
  8. Library: Allow passing working directory for agent container

    The agent will store data in /var/lib/keylime which needs to be
    accessible by the unprivileged user in the container.
    
    Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
    ansasaki committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    bb58119 View commit details
    Browse the repository at this point in the history
  9. Avoid the need for python inside the agent container

    Replace the python payload action with a shell payload action to avoid
    the need for python inside the agent container.
    
    Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
    ansasaki committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    7dc8e00 View commit details
    Browse the repository at this point in the history
  10. Create container for revocation webhook.

    Use a separate container for the revocation webhook.
    
    Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
    ansasaki committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    c54cf72 View commit details
    Browse the repository at this point in the history
  11. Fix ShellCheck finding

    Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
    ansasaki committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    d317897 View commit details
    Browse the repository at this point in the history