Skip to content

Fix Nexus EULA acceptance for Nexus 3.77+ Community Edition (#4842)#4843

Open
marrobi wants to merge 8 commits intomicrosoft:mainfrom
marrobi:marrobi/fix-nexus-eula-4842
Open

Fix Nexus EULA acceptance for Nexus 3.77+ Community Edition (#4842)#4843
marrobi wants to merge 8 commits intomicrosoft:mainfrom
marrobi:marrobi/fix-nexus-eula-4842

Conversation

@marrobi
Copy link
Member

@marrobi marrobi commented Feb 4, 2026

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 (it was failing)
  • Add V extension with "cloud-init status --wait" to ensure don't return before configuration is complete.
  • Bump porter version to 3.6.2

Resolves #4842

Copilot AI review requested due to automatic review settings February 4, 2026 12:01
@marrobi marrobi requested a review from a team as a code owner February 4, 2026 12:01
@github-actions
Copy link

github-actions bot commented Feb 4, 2026

Unit Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 3469a74.

♻️ This comment has been updated with latest results.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_eula parameter 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 jq to 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
@marrobi marrobi force-pushed the marrobi/fix-nexus-eula-4842 branch from de9170b to 336b097 Compare February 4, 2026 12:06
@marrobi marrobi added the bug Something isn't working label Feb 6, 2026
@marrobi
Copy link
Member Author

marrobi commented Feb 9, 2026

/test-force-approve

Not tested.

@github-actions
Copy link

github-actions bot commented Feb 9, 2026

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 3469a74)

(in response to this comment from @marrobi)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nexus 3.77+ Community Edition EULA blocks repository access

2 participants