View a markdown version of this page

Security considerations - Amazon Connect Customer

Security considerations

Security is a shared responsibility between AWS and you. For the security practices that Connect Customer and Amazon Bedrock AgentCore document, see Security best practices for Connect Customer and Security in Amazon Bedrock AgentCore.

The following facts apply to this integration:

  • Each system's credentials stay in your AWS account, and the gateway attaches them to each call. For a system you add, the OAuth client or API key is in AgentCore Identity. With the Salesforce template, the consumer secret is stored in AWS Secrets Manager, and the stack's token refresh function uses it to get an access token every five minutes. The credentials aren't passed to the flow or the agent's browser.

  • The stack keeps the Salesforce access token in the token secret, stack-name-token. Anyone who can read it can call Salesforce as the integration user until the token expires. Your AWS administrator decides who can read it, with secretsmanager:GetSecretValue. Grant it on this secret only to the roles that need it, and check which IAM policies grant it on *. See Authentication and access control for AWS Secrets Manager. How long a token lasts is set by the External Client App's session policies in Salesforce.

  • For an OAuth client or API key target, the gateway calls as that credential's user or app, so its permissions in your system decide what guides and AI agents can read or change. For an AWS Lambda target, your function decides, with the gateway's IAM service role and the function's own permissions. With the Salesforce template, every call runs as the integration user, whose Salesforce permissions and sharing settings your Salesforce administrator sets and that apply to every call. What each agent sees is set by the guide's views and the agent's Connect Customer security profile.

  • The permission set that the setup script in Step 2 creates grants read on every field of Case, Account and Contact, and edit on every field of them that can be edited. Your Salesforce administrator decides which fields the integration user can read and edit, and can narrow the permission set. The account and case guide reads accounts and cases, creates cases, accounts and contacts, edits a case's Status, Priority, Subject and Description, an account's Name, Phone and BillingCity, and a contact's FirstName, LastName, Email and Phone, and adds case comments.

  • The setup script also grants Delete on Case and Run Flows by default. Run Flows lets guides and flow modules you build start active autolaunched Salesforce flows with runFlow; the sample guide starts none. Delete on Case lets a guide you build delete cases with deleteCase. Any flow or AI agent that can call the gateway's tools has the same access, so your Salesforce administrator sets these permissions for what your guides need.

  • Users with the Flows - Edit security profile permission can call every tool on the gateway, so treat that permission as write access to every connected system.

  • The guide opens the record named in accountId, caseId or contactEmail. Values from a pre-chat form or the chat widget's snippet come from the customer, so set these attributes from your website's server; see Pass contact attributes when a chat starts.

  • The guide and the AI agents read and write Salesforce records through the gateway while the contact is in progress, and the stack copies no Salesforce record into Customer Profiles or Cases in Connect Customer. Connect Customer keeps its own contact records, and on an instance with Customer Profiles turned on, it creates a customer profile for each new contact.

  • Every field that a flow passes to a Show view block reaches the agent's browser, even if the view doesn't display it.

  • Values copied into contact attributes are stored on the contact record. Flow logs, if turned on, and gateway logs, if turned on, can contain the data that your system returns. The guide flow and its modules turn flow logging off, so flow logs don't show their calls.

  • The stack's change alerts need an AWS CloudTrail trail that logs management events in the Region of your instance; the VerifyTrail output checks it. The stack's alarms don't need a trail. See Monitor the integration.

  • Self-service AI agents: the knowledge agent reads no Salesforce data. The account agent's getMyAccount tool reads only the account in the contact's accountId, so whoever sets accountId decides which account it reads. For when to make the account agent the assistant's Self service default, see Let self-service read the verified account.

  • Agent assist runs a flow module only when both its own security profile and the agent's security profile list it, and it waits for the agent to confirm each write. Text in records or in the chat can influence what it proposes, so agents read each proposed write before they confirm it.

To stop the integration, see Stop the integration immediately.