Before this doc update, the Argo CD Operator documentation did not include comprehensive coverage of the breaking changes that Argo CD 3.0 brought in, particularly regarding RBAC with Dex SSO authentication and the migration from encoded sub claims to federated_claims.user_id. With this update, comprehensive documentation has been added to the operator documentation that includes detailed migration guides, step-by-step remediation procedures, practical examples for updating RBAC policies, and best practices for RBAC management in the new hands-off approach. Now, users of the Argo CD Operator have clear instructions on how to decode legacy sub claims, migrate their policies to use the new federated_claims.user_id format, implement proper RBAC strategies, and understand the operator's new approach to RBAC management, ensuring they can properly handle the breaking changes that Argo CD 3.0 introduced when using the operator
Test Purpose
The test validates the Dex SSO authentication changes introduced in Argo CD 3.0+, specifically the migration from encoded sub claims to federated_claims.user_id for RBAC policies.
What the Test Validates
1. Legacy Policy Detection:
Tests that ArgoCD can handle legacy RBAC policies using encoded sub claims (simulating Argo CD 2.x behavior)
Example: ChdleGFtcGxlQGFyZ29wcm9qLmlvEgJkZXhfY29ubl9pZA
2. Policy Migration Process:
Verifies that RBAC policies can be successfully migrated to use federated_claims.user_id
Example:
test@example.com instead of encoded claims
3. Authentication & Authorization:
Confirms that Applications can be created and managed after the migration
Tests both user-specific and group-based RBAC policies
4. Validates that the new authentication mechanism works correctly
Backward Compatibility:
5. Ensures that group-based policies continue to work (these don't need migration)
Verifies that the ArgoCD operator properly handles the transition
Test Steps
1. Initial Setup: Creates ArgoCD with Dex SSO and legacy RBAC policies
2. Migration: Updates RBAC policies to use the new federated_claims.user_id format
3. Validation: Creates test Applications to verify authentication/authorization works
4. Group Testing: Tests group-based policies (which remain unchanged)
5. Cleanup: Removes test resources