Skip to content

Remove the need of temporary ROX_TOKEN_SECRET #17

Description

@mgoerens

The run-image-scan Task uses the upstream rhacs-image-scan. This task requires a workspace rox-api-token-auth that contains the ROX_API_TOKEN.

This is achieved by creating a temporary secret as part of the authenticate-central Task. The secret is deleted as part of the delete-rox-api-token-secret Task.

On top of having to manage this temporary secret, this makes the process of running the pipeline a bit more complex, as you have to pass the name of the workspace/secret as a pipeline parameter.

To remove the need for this temporary secret, we should use the environment variable ROX_API_TOKEN, as we do in other places. We have identified the following options:

  1. Modify the upstream Task to accept the ROX_API_TOKEN environment variable. We're waiting on inputs from the RHACS team on how to contribute.
  2. Create our own Task to run roxctl image scan (example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions