AZDO.1014 - Anonymous access to pipeline badges.
Overviewโ
Status badges in Azure DevOps should be disabled.
Rationale: Even in a private project, anonymous badge access is enabled by default. With anonymous badge access enabled, users outside your organization might be able to query information such as project names, branch names, job names, and build status through the badge status API.
Remediation actionโ
Enable the restriction to prevent anonymous access to status badges.
- Sign in to your organization.
- Choose Organization settings.
- Select Settings under Pipelines.
- Enable the policy "Disable anonymous access to badges"
Results: Users outside of your organization cannot query information regarding your project names, branch names, job names, and build statuses through the badge status API.
Related linksโ
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AZDO.1014 |
| Severity | Medium |
| Suite | Maester |
| Category | Azure DevOps |
| PowerShell test | Test-AzdoOrganizationBadgesArePrivate |
| Services | AzureDevOps |
| Learn more | https://learn.microsoft.com/azure/devops/pipelines/create-first-pipeline?view=azure-devops&tabs=net%2Cbrowser#add-a-status-badge-to-your-repository |
| Tags | AZDO, AZDO.1014 |
Sourceโ
- Test:
tests/Maester/AzureDevOps/Test.AZDO.1014.ps1 - Documentation:
tests/Maester/AzureDevOps/Test.AZDO.1014.md
