Skip to content

Credentials support for ZIP and TAR#285

Open
pijaro wants to merge 1 commit into
dirk-thomas:masterfrom
pijaro:pj/credentials
Open

Credentials support for ZIP and TAR#285
pijaro wants to merge 1 commit into
dirk-thomas:masterfrom
pijaro:pj/credentials

Conversation

@pijaro

@pijaro pijaro commented Mar 18, 2025

Copy link
Copy Markdown

This PR allows passing credentials for ZIP/TAR repositories using environment variables. It modifies the load_url call by utilizing a Request object with the Authorization field populated from environment variables based on a user-defined key.

A new field, credentials_key: <KEY>, is introduced in the repository configuration file. This key identifies the environment variables that hold the required credential information:

  • VCS_<KEY>_AUTHENTICATION_METHOD – Authentication method:
    • Basic for username and password.
    • Bearer or Token for token-based authentication.
  • VCS_<KEY>_USERNAME – Username for Basic authentication.
  • VCS_<KEY>_PASSWORD – Password for Basic authentication.
  • VCS_<KEY>_TOKEN – Token for Bearer or Token authentication.

Additionally, an option to ignore SSL certificate verification is provided for self-signed hosts: VCS_IGNORE_SSL_CERTIFICATE=True

This solution is simple to configure and does not introduce additional dependencies.

Signed-off-by: Piotr Jaroszek <piotr.jaroszek@robotec.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant