Fix Nexus EULA acceptance for Nexus 3.77+ Community Edition (#4842)#4843
Open
marrobi wants to merge 8 commits intomicrosoft:mainfrom
Open
Fix Nexus EULA acceptance for Nexus 3.77+ Community Edition (#4842)#4843marrobi wants to merge 8 commits intomicrosoft:mainfrom
marrobi wants to merge 8 commits intomicrosoft:mainfrom
Conversation
Unit Test Results0 tests 0 ✅ 0s ⏱️ Results for commit 3469a74. ♻️ This comment has been updated with latest results. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR ensures Nexus 3.77+ Community Edition can be used reliably within Azure TRE by enforcing EULA acceptance at deployment time and programmatically accepting the EULA so repositories are usable immediately after deployment.
Changes:
- Add a required
accept_nexus_eulaparameter with UI schema enforcing explicit, checked acceptance for the Sonatype Nexus shared service. - Extend the Nexus configuration script to detect and accept the Community Edition EULA via the REST API using
jqto safely construct the JSON payload. - Bump the Nexus shared service Porter bundle version and KeyVault VM extension handler version, and document the breaking behavior and bug fix in the changelog.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
templates/shared_services/sonatype-nexus-vm/terraform/vm.tf |
Updates the KeyVault VM extension type_handler_version to 3.5 to improve reliability of certificate retrieval for the Nexus VM. |
templates/shared_services/sonatype-nexus-vm/template_schema.json |
Introduces a required accept_nexus_eula boolean with const: true and UI metadata so users must explicitly accept the Nexus CE EULA when provisioning the shared service. |
templates/shared_services/sonatype-nexus-vm/scripts/configure_nexus_repos.sh |
Adds logic to check the EULA status and, if needed, accept it via the /service/rest/v1/system/eula API using jq-built JSON before proceeding with anonymous access and repository configuration. |
templates/shared_services/sonatype-nexus-vm/porter.yaml |
Bumps the Nexus shared service bundle version from 3.3.5 to 3.6.2 and adds the accept_nexus_eula parameter to the bundle contract. |
CHANGELOG.md |
Documents the new requirement for explicit EULA acceptance as a breaking change and details the bug fix for Nexus repository access being blocked on 3.77+ CE, including the KeyVault extension update. |
…t#4842) BREAKING CHANGE: Sonatype Nexus shared service now requires explicit EULA acceptance (accept_nexus_eula: true) when deploying. - Add automatic EULA acceptance with proper JSON escaping via jq - Add accept_nexus_eula parameter with const: true validation - Update KeyVault VM extension to v3.5 for improved reliability - Add cloud-init wait extension to ensure deployment reports actual status (microsoft#4540) - Bump porter version to 3.6.3
de9170b to
336b097
Compare
tamirkamara
approved these changes
Feb 9, 2026
Member
Author
|
/test-force-approve Not tested. |
|
🤖 pr-bot 🤖 ✅ Marking tests as complete (for commit 3469a74) (in response to this comment from @marrobi) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sonatype Nexus shared service now requires explicit EULA acceptance (accept_nexus_eula: true) when deploying.
Resolves #4842