Done
Labels
Description
Problem
OrgConfig.save() accepts any non-empty string for known keys — no format validation (URL shape, token prefixes, etc.). _SENSITIVE_SUFFIXES is defined but never used.
Credential changes log key names only — no structured audit of who changed what and when. OrgConfig.delete() exists but has no HTTP or MCP endpoint for secure revocation/rotation.
With 40+ BYOK keys per org (ORG_CREDENTIAL_KEYS), operators have no guided rotation path or visibility into stale credentials.
Impact
Invalid keys fail at runtime instead of save time. Compromised keys cannot be revoked via API. No audit trail for compliance (SOC2, etc.).
Proposed solution
- Optional format validation for high-risk keys (webhook URLs,
sk-ant-prefix,ghp_prefix, etc.) - Emit structured audit events on credential create/update/delete (actor, org_id, keys changed, timestamp — never values)
- Expose authenticated
DELETE /orgs/{org_id}/configand MCP equivalent for revocation - Add rotation metadata (
updated_at,updated_by) per credential bundle - Document rotation runbook in security docs
References
services/org_config.py(ORG_CREDENTIAL_KEYS,_SENSITIVE_SUFFIXES,save(),delete())devops_mcp/registry.py(configure_org_credentials,get_org_config_status)docs/COVERAGE_GAPS.md(Vault/rotation mention)
Activity