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

Support netrc auth for prefetch-dependencies #1078

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

chmeliik
Copy link
Contributor

@chmeliik chmeliik commented Jun 17, 2024

STONEBLD-2506

  • Update to cachi2 0.8.0 (among other things, introduces .netrc support and --index-url support for pip)
  • Allow user to supply a workspace containing a .netrc file. Cachi2 will authenticate https requests using the credentials in this file.

chmeliik added 3 commits June 27, 2024 10:16
Allow user to supply a workspace containing a .netrc file. Cachi2 will
authenticate https requests using the credentials in this file.

Signed-off-by: Adam Cmiel <[email protected]>
In the PipelineRun template, the users are going to pass the workspace
with something like this

    workspaces:
      - name: netrc
        secret:
          secretName: my-netrc

Signed-off-by: Adam Cmiel <[email protected]>
@chmeliik chmeliik marked this pull request as ready for review June 27, 2024 09:29
@chmeliik
Copy link
Contributor Author

/retest

@chmeliik
Copy link
Contributor Author

Tested in acmiel-rhtap/cachi2-pip-custom-index#1

The index server defined in https://github.com/acmiel-rhtap/cachi2-pip-custom-index/blob/main/requirements.txt requires auth, which was provided from a netrc secret in my workspace

@chmeliik chmeliik added this pull request to the merge queue Jun 27, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 27, 2024
@chmeliik chmeliik added this pull request to the merge queue Jun 28, 2024
Merged via the queue into konflux-ci:main with commit 6b7d639 Jun 28, 2024
7 checks passed
@chmeliik chmeliik deleted the prefetch-netrc branch June 28, 2024 12:55
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.

3 participants