Identity Platform Runbook¶
This document provides operational procedures and troubleshooting guides for the ConnectSoft Identity & Access Platform. It is written for operations teams and SREs running the Identity Platform.
The Identity Platform provides authentication and authorization services for ConnectSoft systems. This runbook covers common operations, troubleshooting, and incident response procedures.
Note
This runbook focuses on operational procedures. For architecture and design details, see Identity Platform.
System Overview¶
What the Identity Platform Does¶
Core Functions: - User authentication - OAuth2/OpenID Connect authentication - Token management - Issue and validate access tokens, refresh tokens - User management - Create, update, delete users - Tenant management - Multi-tenant user isolation - Authorization - Role-based and resource-based authorization
Key Components¶
Services: - Authorization Server - OAuth/OIDC protocol endpoints, token issuance, signing keys, discovery, JWKS, refresh, revocation, and introspection - Identity API - REST API for users, profiles, credentials, MFA, roles, claims, recovery, and account linking - API Gateway - Public API perimeter and token/header propagation point - User Store - Database for users and credentials - Key Vault - Stores signing keys and secrets
Dependencies: - Azure Cosmos DB - User data storage - Azure Key Vault - Secrets and signing keys - Azure Service Bus - Event publishing (user created, etc.)
Common Symptoms and Checks¶
Symptom: Login Failures¶
Diagnosis Steps:
- Check Error Rate
- Open Identity Platform dashboard
- Check error rate metric
-
Identify error spike time
-
Check Error Logs
-
Check Token Service Health
- Check
/healthendpoint - Verify token signing keys are accessible
- Check Key Vault connectivity
Common Causes: - Invalid credentials - Token service unavailable - Key Vault connectivity issues - Database connectivity issues
Symptom: Token Issues¶
Diagnosis Steps:
- Check Token Validation Errors
- Check logs for token validation failures
- Verify token expiration times
-
Check token signature validation
-
Check Key Vault
- Verify signing keys are accessible
- Check key rotation status
-
Verify key permissions
-
Check Token Service
- Verify token service is running
- Check token service health endpoint
- Verify token service can access Key Vault
Common Causes: - Expired tokens - Invalid token signatures - Key Vault connectivity issues - Token service unavailable - Stale JWKS or discovery metadata cache in API Gateway or backend APIs
Symptom: High Latency¶
Diagnosis Steps:
- Check Response Times
- Check p95/p99 latency metrics
- Identify slow endpoints
-
Check database query performance
-
Check Database Performance
- Check Cosmos DB RU consumption
- Check query performance
-
Check connection pool usage
-
Check External Dependencies
- Check Key Vault response times
- Check Service Bus latency
- Check network latency
Common Causes: - Database performance issues - High RU consumption - Network latency - Resource constraints
Symptom: Federated Login Failures¶
Diagnosis Steps:
- Identify Provider Scope
- Determine whether failures affect one tenant/provider or all providers.
- Check if local username/password login still works.
-
Check whether the failing provider is OIDC, SAML, social login, Keycloak, Entra ID, or LDAP-backed.
-
Check Provider Metadata
- Verify OIDC discovery or SAML metadata is reachable.
- Check provider certificate expiration or signing key rollover.
-
Confirm redirect URIs still match provider configuration.
-
Check Account Linking
- Verify external subject identifiers map to local accounts.
- Check tenant provisioning and just-in-time account creation rules.
- Review audit events for failed link or duplicate-account conflicts.
Common Causes: - External IdP outage - Rotated provider certificate or signing key - Changed redirect URI or client secret - Tenant-level federation disabled or misconfigured - Account link conflict
Symptom: MFA Lockout or Step-Up Failures¶
Diagnosis Steps:
- Check User and Tenant Policy
- Verify whether MFA is required for the user, role, tenant, client, or operation.
-
Check enrollment status, recovery code availability, and locked factors.
-
Check Challenge Delivery
- Verify authenticator app, email, SMS, or recovery flow configuration.
-
Check rate limits and recent failed attempts.
-
Check Token Assurance
- Verify refreshed tokens include the required authentication context or assurance claim.
- Confirm API or gateway step-up policy matches the Authorization Server claim contract.
Common Causes: - User lost device and has no recovery path - Too many failed challenges - Token missing required assurance claim - Tenant policy changed without frontend/gateway alignment
Incident Scenarios¶
Scenario 1: Authentication Outage¶
Symptoms: - All login attempts failing - High error rate (100%) - Token service returning 500 errors
Diagnosis:
-
Check Token Service
-
Check Key Vault
-
Check Database
Resolution Steps:
- If Token Service Down:
- Check pod status:
kubectl get pods -n identity - Check logs:
kubectl logs -n identity <pod-name> -
Restart if needed:
kubectl rollout restart deployment/identity-api -n identity -
If Key Vault Issue:
- Verify managed identity permissions
- Check Key Vault firewall rules
-
Verify key exists and is accessible
-
If Database Issue:
- Check Cosmos DB status in Azure portal
- Verify connection string
- Check RU limits and throttling
Verification: - Login attempts succeed - Error rate returns to normal - Health checks pass
Scenario 2: Performance Degradation¶
Symptoms: - Increased latency (p95 > 500ms) - Timeout errors - Slow token generation
Diagnosis:
- Check Metrics
- Check latency trends
- Check request rate
-
Check error rate
-
Check Database
- Check Cosmos DB RU consumption
- Check query performance
-
Check throttling
-
Check Resources
- Check CPU/memory usage
- Check pod resource limits
- Check autoscaling status
Resolution Steps:
-
Scale Up
-
Increase Database RU
- Azure Portal → Cosmos DB → Scale
-
Increase RU/s if throttled
-
Optimize Queries
- Review slow query logs
- Add indexes if needed
- Optimize query patterns
Verification: - Latency returns to normal - No timeout errors - Health checks pass
Scenario 3: Token Validation Failures¶
Symptoms: - Token validation errors - "Invalid token" errors - Token signature verification failures
Diagnosis:
- Check Token Service Logs
- Check for token validation errors
- Verify token format
-
Check signature validation
-
Check Key Vault
- Verify signing keys are accessible
- Check key rotation status
- Verify key permissions
Resolution Steps:
- Verify Key Rotation
- Check if keys were rotated recently
- Verify new keys are accessible
-
Update token service configuration if needed
-
Check Key Permissions
Verification: - Token validation succeeds - No token errors in logs - Health checks pass
Scenario 4: API Gateway Rejects Valid Users¶
Symptoms: - Login succeeds but API calls return 401/403 - Gateway logs show audience, issuer, scope, or JWKS validation errors - Backend APIs receive no request, or receive incomplete context headers
Diagnosis:
- Compare Gateway and Authorization Server Configuration
- Verify issuer URL, audience, scopes, and JWKS URI.
-
Check whether discovery metadata changed after deployment or key rotation.
-
Check Route Policy
- Confirm the route expects the scopes/roles actually present in the token.
-
Confirm tenant and user context headers are configured for trusted downstream routes.
-
Check Cache State
- Clear or refresh gateway JWKS/discovery cache where supported.
- Verify backend APIs are not using stale signing keys.
Resolution Steps:
- Align gateway route policy with the token contract.
- Refresh discovery/JWKS cache.
- Roll forward configuration if Authorization Server metadata changed intentionally.
Verification: - Gateway accepts valid tokens. - Invalid or expired tokens are still rejected. - Downstream APIs receive expected correlation, user, client, and tenant context.
Scenario 5: External IdP Metadata or Certificate Rotation¶
Symptoms: - Federated login fails for one provider or tenant - Errors mention invalid signature, unknown key, metadata fetch failure, or assertion validation failure
Diagnosis:
- Check provider metadata endpoint and certificate expiration.
- Confirm configured issuer, audience, client ID, redirect URI, and callback URL.
- Review recent provider-side changes or customer IdP maintenance notices.
Resolution Steps:
- Refresh provider metadata in the Identity Platform.
- Update provider certificate or client secret if rotated.
- Validate a test login for the affected tenant before broad rollout.
Verification: - Federated login succeeds for the affected tenant/provider. - Local login and other providers remain unaffected. - Audit trail records the provider configuration change.
Maintenance Tasks¶
Rotating Signing Keys¶
Frequency: Quarterly or as needed for security
Steps:
-
Generate New Key
-
Update Configuration
- Update token service configuration to use new key
- Keep old key for token validation during transition
-
Confirm Authorization Server discovery and JWKS endpoints publish both active and rollover keys during the overlap window
-
Deploy Update
- Deploy updated configuration
- Verify new tokens use new key
- Monitor for issues
-
Verify API Gateway and backend resource APIs refresh discovery/JWKS metadata
-
Remove Old Key (after transition period)
- Remove old key after all tokens expire
- Update configuration to remove old key reference
Federation Provider Review¶
Frequency: Quarterly and before major enterprise customer onboarding
Checks: - Provider metadata URL is reachable - Certificates and client secrets are not near expiration - Redirect URIs match deployed environments - Tenant-level provider ownership is documented - Account linking and just-in-time provisioning rules are still correct
MFA Recovery Review¶
Frequency: Quarterly
Checks: - Admin accounts have MFA enforced - Recovery flow is documented and audited - Help desk or support escalation path is tested - Step-up policies match gateway/backend authorization requirements
Patching and Updates¶
Process:
- Plan Update
- Review release notes
- Identify breaking changes
-
Plan deployment window
-
Deploy to Dev
- Deploy update to dev environment
- Run tests
-
Verify functionality
-
Deploy to Staging
- Deploy update to staging
- Run integration tests
-
Verify with production-like data
-
Deploy to Production
- Deploy during maintenance window
- Monitor metrics and logs
- Rollback if issues occur
Scaling and Capacity Planning¶
Monitoring: - Request rate trends - Latency trends - Database RU consumption - Resource usage
Scaling Triggers: - CPU usage > 70% - Memory usage > 80% - Request rate increasing - Latency increasing
Scaling Actions: - Horizontal scaling (add pods) - Vertical scaling (increase resources) - Database scaling (increase RU)
Related Documents¶
- Operations Overview - Operations documentation overview
- Monitoring & Dashboards - Monitoring practices
- Incident Management - Incident response process
- Identity Platform - Platform architecture
- Identity Platform API Overview - Conceptual API surface
- Security and Compliance Policy - Identity governance baseline