Skip to content

Add secret producer/receiver and docker credential helper#381

Merged
pantherman594 merged 6 commits into
masterfrom
consume-secret
May 1, 2026
Merged

Add secret producer/receiver and docker credential helper#381
pantherman594 merged 6 commits into
masterfrom
consume-secret

Conversation

@pantherman594

@pantherman594 pantherman594 commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

See linked verily1 PR for ordering of when the scripts will be called.

  • docker-auth-secrets.sh registers docker-credential-workbench-secret to be used when pulling a package from one of the "dockerRepository" secrets. This must be called after git-clone-devcontainer since it needs to read the secret from the devcontainer directory
  • docker-credential-secrets.sh is the script behind docker-credential-workbench-secret (the docker-credential scripts are just a thin wrapper providing the resource path)
  • provide-secrets.sh fetches secrets configured in secrets.yml and passes them to the app. This is the "Secret Provider" in the design doc
  • secret-receiver receives the secret values and directs them to environment variables or file descriptors for the app to read
  • vscode-secrets is a sample vscode app that reads a secret named example-secret and stores it in environment variable EXAMPLE_SECRET

PHP-127691

@pantherman594 pantherman594 force-pushed the consume-secret branch 6 times, most recently from 04fa6a5 to 82a8e91 Compare April 27, 2026 16:59
@pantherman594 pantherman594 mentioned this pull request Apr 27, 2026
@pantherman594 pantherman594 changed the base branch from master to test-pre-post-script April 27, 2026 17:16
Base automatically changed from test-pre-post-script to master April 27, 2026 23:40
@pantherman594 pantherman594 marked this pull request as ready for review April 27, 2026 23:47
@pantherman594 pantherman594 requested review from a team as code owners April 27, 2026 23:47
Comment thread startupscript/butane/055-provide-secrets.sh
Comment thread startupscript/butane/055-provide-secrets.sh
Comment thread startupscript/butane/055-provide-secrets.sh
Comment thread startupscript/butane/secret-utils.sh
Comment thread startupscript/butane/secret-utils.sh
@pantherman594 pantherman594 merged commit edbc652 into master May 1, 2026
14 of 16 checks passed
@pantherman594 pantherman594 deleted the consume-secret branch May 1, 2026 15:11
PeterSu92 pushed a commit that referenced this pull request May 21, 2026
See linked verily1 PR for ordering of when the scripts will be called.

- `docker-auth-secrets.sh` registers docker-credential-workbench-secret to be used when pulling a package from one of the "dockerRepository" secrets. This must be called after git-clone-devcontainer since it needs to read the secret from the devcontainer directory
- `docker-credential-secrets.sh` is the script behind docker-credential-workbench-secret (the docker-credential scripts are just a thin wrapper providing the resource path)
- `provide-secrets.sh` fetches secrets configured in secrets.yml and passes them to the app. This is the "Secret Provider" in the design doc
- `secret-receiver` receives the secret values and directs them to environment variables or file descriptors for the app to read
- `vscode-secrets` is a sample vscode app that reads a secret named `example-secret` and stores it in environment variable `EXAMPLE_SECRET`

PHP-127691
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.

2 participants