-
Notifications
You must be signed in to change notification settings - Fork 1
BUILD-12158: Decouple Vault URL from Repox hostname #350
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,9 @@ inputs: | |
| repox-url: | ||
| description: URL for Repox | ||
| default: https://repox.jfrog.io | ||
| vault-url: | ||
| description: Vault address used to mint Artifactory tokens. Independent of `repox-url`. | ||
| default: https://vault.sonar.build | ||
|
Comment on lines
+18
to
+20
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Quality: New vault-url input not documented in README input tables
Add a vault-url row to both the config-maven and build-maven input tables in README.md.:
Check the box to apply the fix or reply for a change | Was this helpful? React with 👍 / 👎 |
||
| use-develocity: | ||
| description: Whether to use Develocity for build tracking. | ||
| default: 'false' | ||
|
|
@@ -95,7 +98,7 @@ runs: | |
| if: steps.config-maven-completed.outputs.skip != 'true' | ||
| id: artifactory | ||
| with: | ||
| url: ${{ contains(inputs.repox-url, 'dev.sonar.build') && 'https://vault.dev.sonar.build' || 'https://vault.sonar.build' }} | ||
| url: ${{ inputs.vault-url }} | ||
| secrets: | | ||
| development/artifactory/token/{REPO_OWNER_NAME_DASH}-${{ env.ARTIFACTORY_READER_ROLE }} username | ARTIFACTORY_USERNAME; | ||
| development/artifactory/token/{REPO_OWNER_NAME_DASH}-${{ env.ARTIFACTORY_READER_ROLE }} access_token | ARTIFACTORY_ACCESS_TOKEN; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously
config-maven/build-mavenauto-selectedhttps://vault.dev.sonar.buildwheneverrepox-urlcontaineddev.sonar.build. With the newvault-urlinput defaulting unconditionally tohttps://vault.sonar.build, any existing caller that setsrepox-url: https://repox.dev.sonar.build(and does not yet know aboutvault-url) now mints Artifactory tokens from prod Vault against the dev Repox, which fails auth at dependency-resolution/deploy time rather than at config time. The same workflow also becomes internally inconsistent: the ten sibling actions (config-npm,build-npm,config-gradle,build-gradle,config-pip,config-uv,config-poetry,build-poetry,build-yarn,promote) still derive Vault fromrepox-url, so e.g.build-maven+promotein one dev pipeline would hit two different Vaults. Keeping the derivation as the fallback whenvault-urlis not explicitly provided preserves current behavior while still allowing the Edge/prod split this PR needs.Make
vault-urlan explicit override and keep the repox-url derivation as the default, in both build-maven and config-maven.:Check the box to apply the fix or reply for a change | Was this helpful? React with 👍 / 👎