Ensure that the AWS Secrets Manager secret holding the connection credentials for each Amazon Bedrock Knowledge Base SaaS data source (Salesforce, SharePoint, or Confluence) is configured with automatic rotation enabled. When you connect a Knowledge Base to an external SaaS service, Amazon Bedrock authenticates to that service using OAuth credentials that you must store in AWS Secrets Manager and reference through the "credentialsSecretArn" field of the data source connector configuration. Configuring automatic rotation on the referenced secret ensures that the stored credentials are periodically replaced by a Lambda rotation function, limiting the window during which a compromised credential remains valid.
Amazon Bedrock Knowledge Base SaaS connectors store long-lived OAuth credentials that grant Amazon Bedrock access to integrated third-party services such as Salesforce, Microsoft SharePoint, and Confluence. An attacker who can retrieve and decrypt the connection secret can steal these credentials and impersonate the Knowledge Base against the connected SaaS service, and in the case of SharePoint the stolen credentials could enable lateral movement into the organization's Active Directory. Enabling automatic rotation on the AWS Secrets Manager secret ensures that the credentials are regularly and automatically replaced, dramatically shortening the useful lifetime of any credential that is leaked or stolen and reducing the blast radius of a compromise.
Audit
To determine if the credentials for your Amazon Bedrock Knowledge Base SaaS data sources are stored in AWS Secrets Manager with automatic rotation enabled, perform the following operations:
Remediation / Resolution
To enable automatic rotation for the AWS Secrets Manager secret that stores the connection credentials of your Amazon Bedrock Knowledge Base SaaS data sources, perform the following operations:
Note: Rotation requires a Lambda function that updates both the Secrets Manager secret and the corresponding credentials in the connected SaaS application, while preserving the exact secret structure (key names) expected by the Amazon Bedrock connector.References
- AWS Documentation
- Connect a data source to your knowledge base
- Connect to Salesforce for your knowledge base
- Connect to Microsoft SharePoint for your knowledge base
- Connect to Confluence for your knowledge base
- Rotate AWS Secrets Manager secrets
- AWS Command Line Interface (CLI) Documentation
- list-knowledge-bases
- list-data-sources
- get-data-source
- describe-secret
- rotate-secret