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

docker_push: allow passing cred_helpers from toolchain into commands #2257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

manuelnaranjo
Copy link

When an environment sets up the credentials helpers and configuration it's expected the behaviour that container_pull provides is also offered by container_push

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

There are no tests for container_push, didn't explore adding those, in terms of docs the documented behaviour is not what's happening, after this PR docs and behaviour matches.

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Workspace configures toolchain with both client_config and cred_helpers but yet the container_push is not authenticated, unless the helpers are in the host $PATH, leading to non reproducible setups.

Issue Number: 2126

What is the new behavior?

Workspace configures toolchain with both client_config and cred_helpers but now the provided cred_helpers are used for authentication not relying on host setup.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Using it internally at booking.com already

When an environment sets up the credentials helpers and configuration
it's expected the behaviour that container_pull provides is also offered
by container_push
@manuelnaranjo manuelnaranjo force-pushed the mnaranjo/container-push branch from 590ffa8 to 261fab7 Compare June 7, 2023 07:47
@manuelnaranjo
Copy link
Author

@uhthomas maybe you can review? CI is not passing because of ubuntu 22.04 issues

Copy link

This Pull Request has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days.
Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_docker!

@github-actions github-actions bot added the Can Close? Will close in 30 days unless there is a comment indicating why not label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Can Close? Will close in 30 days unless there is a comment indicating why not
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant