AZDO.1031 - Validate SSH Key Expiration.
Overviewโ
Validation of SSH key expiration date should be enabled.
Rationale: Expired SSH keys should not be valid for authentication towards Azure DevOps.
Remediation actionโ
Enable the policy to stop these requests and notifications.
- Sign in to your organization.
- Choose Organization settings.
- Select Policies under Security.
- Switch the Validate SSH key expiration button to ON.
Results: When active, Azure DevOps enforces that keys with expired expiration dates immediately become invalid for authentication.
Related linksโ
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AZDO.1031 |
| Severity | High |
| Suite | Maester |
| Category | Azure DevOps |
| PowerShell test | Test-AzdoValidateSshKeyExpiration |
| Services | AzureDevOps |
| Learn more | https://learn.microsoft.com/azure/devops/organizations/accounts/change-application-access-policies?view=azure-devops#ssh-key-policies |
| Tags | AZDO, AZDO.1031 |
Sourceโ
- Test:
tests/Maester/AzureDevOps/Test.AZDO.1031.ps1 - Documentation:
tests/Maester/AzureDevOps/Test.AZDO.1031.md
