Enable anonymous access in Nexus configuration script#4387
Conversation
Unit Test Results0 tests 0 ✅ 0s ⏱️ Results for commit 3e7ca1b. ♻️ This comment has been updated with latest results. |
|
/test-extended |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/13480801966 (with refid (in response to this comment from @ShakutaiGit) |
|
/test-extended |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/13495247766 (with refid (in response to this comment from @ShakutaiGit) |
|
/test-extended |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/13496805569 (with refid (in response to this comment from @ShakutaiGit) |
|
/test-extended |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/13502255618 (with refid (in response to this comment from @ShakutaiGit) |
|
/test-extended |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/13515419105 (with refid (in response to this comment from @ShakutaiGit) |
|
/test |
|
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/13518766607 (with refid (in response to this comment from @ShakutaiGit) |
|
/test |
|
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/13519314802 (with refid (in response to this comment from @ShakutaiGit) |
|
/destroy-env |
|
🤖 pr-bot 🤖
You can use the following commands: (in response to this comment from @ShakutaiGit) |
|
/test-destroy-env |
|
Destroying branch test environment (RG: rg-tredcf4d668)... (run: https://github.com/microsoft/AzureTRE/actions/runs/13519412407) |
|
Destroying PR test environment (RG: rg-tre6a231665)... (run: https://github.com/microsoft/AzureTRE/actions/runs/13519412407) |
|
Branch test environment destroy complete (RG: rg-tredcf4d668) |
|
/test |
|
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/13519447452 (with refid (in response to this comment from @ShakutaiGit) |
|
PR test environment destroy complete (RG: rg-tre6a231665) |
|
/test |
…Nexus access and retry logic
|
/test |
|
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/13816781272 (with refid (in response to this comment from @ShakutaiGit) |
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the Nexus configuration script to handle delayed service readiness and enable anonymous access once Nexus is available. Key changes include:
- Adding an exponential retry mechanism for handling Nexus availability delays.
- Enabling anonymous access in the Nexus configuration.
- Bumping the Nexus image version in the porter.yaml file.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| CHANGELOG.md | Updated changelog to document anonymous access enablement and the retry mechanism for Nexus. |
| templates/shared_services/sonatype-nexus-vm/porter.yaml | Updated the Nexus version from 3.3.2 to 3.3.3 to reflect the changes in the Nexus configuration. |
|
/test-force-approve |
|
🤖 pr-bot 🤖 ✅ Marking tests as complete (for commit a172957) (in response to this comment from @ShakutaiGit) |
|
/test-destroy-env |
|
Destroying PR test environment (RG: rg-tre6a231665)... (run: https://github.com/microsoft/AzureTRE/actions/runs/13821239944) |
|
Destroying branch test environment (RG: rg-tredcf4d668)... (run: https://github.com/microsoft/AzureTRE/actions/runs/13821239944) |
|
Branch test environment destroy complete (RG: rg-tredcf4d668) |
|
PR test environment destroy complete (RG: rg-tre6a231665) |
|
/test-force-approve |
|
🤖 pr-bot 🤖 ✅ Marking tests as complete (for commit 3e7ca1b) (in response to this comment from @ShakutaiGit) |
* Enable anonymous access in Nexus configuration script * Add role assignment for Storage Account Contributor in bootstrap script * Enhance role assignment check in bootstrap script to verify both "Storage Blob Data Contributor" and "Storage Account Contributor" roles are assigned * Refactor role assignment check to validate both "Storage Blob Data Contributor" and "Storage Account Contributor" roles * Remove unused script source from bootstrap.sh * Refactor role assignment check to use local variables for clarity * Update CHANGELOG and add role assignment for Storage Account Contributor in bootstrap.sh * Refactor role assignment check to use counts for validation and streamline script execution * Refactor role assignment check to use non-empty value validation and enhance storage container creation with retry logic * revert bootstrap * CR changes * Refactor role assignment check to verify access via storage container list * Implement retry logic for role assignment checks in bootstrap script * Refactor check_terraform_role_assignments function to simplify error handling and remove unnecessary output * Enhance error message in check_terraform_role_assignments function to indicate retry mechanism on unexpected output * Remove unnecessary echo statement from retry_with_backoff function in bootstrap script * Add validation for required environment variables in bootstrap script * Refactor bootstrap script to streamline Terraform initialization and backend configuration * Add shellcheck disable comments for unbound variable warnings in bootstrap script * Update terraform_wrapper invocation and add blank line for readability in bootstrap script * Bump version to 0.12.7 in version.txt * Refactor bootstrap script to move backend configuration inline and remove redundant function * Remove redundant function call for writing bootstrap Terraform backend * Update show_output.sh to use current directory and improve terraform_wrapper.sh usage documentation * Remove TODO comments from Terraform command output in bootstrap script * Bump version to 0.12.8 in version.txt * Bump version to 0.12.7 * Bump version to 0.12.7 in version.txt * Fix: simplify anonymous access configuration in Nexus repository script * Refactor bootstrap script to inline backend configuration and improve error handling * fix: update condition for Azure and ACR login to check for 'make bootstrap' * fix: resolve CI issue with Azure login steps for branches containing 'bootstrap' * refactor: move Terraform backend configuration to a dedicated section in bootstrap.sh * fix: update role assignment to use Storage Blob Data Contributor in bootstrap.sh * fix: refine role assignment query in bootstrap.sh to check only for Storage Blob Data Contributor * fix: update role check in bootstrap.sh to return status instead of echoing * fix: update comment for granting Storage Blob Data Contributor role in bootstrap.sh * fix: update comment for granting Storage Blob Data Contributor permissions in bootstrap.sh * fix: update Sonatype Nexus version and enhance repository configuration script with retry logic * fix: downgrade Sonatype Nexus version from 3.3.5 to 3.3.3 in porter.yaml * chore: update CHANGELOG.md to include enhancements and bug fixes for Nexus access and retry logic * fix: remove VS Code extensions proxy configuration from Nexus setup script * fix: update comment formatting in bootstrap.sh for clarity * refactor: rename functions for clarity in configure_nexus_repos.sh
* Enable anonymous access in Nexus configuration script * Add role assignment for Storage Account Contributor in bootstrap script * Enhance role assignment check in bootstrap script to verify both "Storage Blob Data Contributor" and "Storage Account Contributor" roles are assigned * Refactor role assignment check to validate both "Storage Blob Data Contributor" and "Storage Account Contributor" roles * Remove unused script source from bootstrap.sh * Refactor role assignment check to use local variables for clarity * Update CHANGELOG and add role assignment for Storage Account Contributor in bootstrap.sh * Refactor role assignment check to use counts for validation and streamline script execution * Refactor role assignment check to use non-empty value validation and enhance storage container creation with retry logic * revert bootstrap * CR changes * Refactor role assignment check to verify access via storage container list * Implement retry logic for role assignment checks in bootstrap script * Refactor check_terraform_role_assignments function to simplify error handling and remove unnecessary output * Enhance error message in check_terraform_role_assignments function to indicate retry mechanism on unexpected output * Remove unnecessary echo statement from retry_with_backoff function in bootstrap script * Add validation for required environment variables in bootstrap script * Refactor bootstrap script to streamline Terraform initialization and backend configuration * Add shellcheck disable comments for unbound variable warnings in bootstrap script * Update terraform_wrapper invocation and add blank line for readability in bootstrap script * Bump version to 0.12.7 in version.txt * Refactor bootstrap script to move backend configuration inline and remove redundant function * Remove redundant function call for writing bootstrap Terraform backend * Update show_output.sh to use current directory and improve terraform_wrapper.sh usage documentation * Remove TODO comments from Terraform command output in bootstrap script * Bump version to 0.12.8 in version.txt * Bump version to 0.12.7 * Bump version to 0.12.7 in version.txt * Fix: simplify anonymous access configuration in Nexus repository script * Refactor bootstrap script to inline backend configuration and improve error handling * fix: update condition for Azure and ACR login to check for 'make bootstrap' * fix: resolve CI issue with Azure login steps for branches containing 'bootstrap' * refactor: move Terraform backend configuration to a dedicated section in bootstrap.sh * fix: update role assignment to use Storage Blob Data Contributor in bootstrap.sh * fix: refine role assignment query in bootstrap.sh to check only for Storage Blob Data Contributor * fix: update role check in bootstrap.sh to return status instead of echoing * fix: update comment for granting Storage Blob Data Contributor role in bootstrap.sh * fix: update comment for granting Storage Blob Data Contributor permissions in bootstrap.sh * fix: update Sonatype Nexus version and enhance repository configuration script with retry logic * fix: downgrade Sonatype Nexus version from 3.3.5 to 3.3.3 in porter.yaml * chore: update CHANGELOG.md to include enhancements and bug fixes for Nexus access and retry logic * fix: remove VS Code extensions proxy configuration from Nexus setup script * fix: update comment formatting in bootstrap.sh for clarity * refactor: rename functions for clarity in configure_nexus_repos.sh
Resolves #4361
Summary
This pull request refactors the Nexus configuration script to handle delays more gracefully and enables anonymous access once Nexus is confirmed to be ready.
What Is Being Addressed
How It Is Addressed
Evidence of service availability delay:

Tests