Security settings configure data redaction and data retention. For example, these settings control how data is redacted in Cloud logging and the Conversation history.
Security settings are set at the project level. If you have
access to an agent in a
project, you can view project-level security settings. To update project-level
security settings, you must have the
dialogflow.securitySettings.update permission.
Dialogflow can take up to one hour to implement security settings
updates.
The following table summarizes the settings. For more information about the settings, see the SecuritySettings RPC reference.
| Security Setting | Description |
|---|---|
redaction_strategy |
RedactionStrategy: Defines how we do redaction. |
redaction_scope |
RedactionScope: Defines the data for which Dialogflow applies redaction. Dialogflow does not redact data that it does not have access to – for example, Cloud logging. |
inspect_template |
stringSensitive Data Protection: The inspect template name. Use this template to define inspect base settings. The If empty, we use the default Sensitive Data Protection inspect config. The template name will have one of the following formats: Note: |
deidentify_template |
stringSensitive Data Protection: The deidentify template name. Use this template to define deidentification configuration for the content. The If empty, Dialogflow replaces sensitive info with The template name will have one of the following formats: Note: |
purge_data_types[] |
PurgeDataType: A list of types of data to be removed when retention settings triggers purge. |
audio_export_settings |
AudioExportSettings: Controls audio export settings for post-conversation analytics when ingesting audio to conversations using [] or [Participants.StreamingAnalyzeContent][].If This setting won't affect audio input for implicit sessions using |
insights_export_settings |
InsightsExportSettings: Controls conversation exporting settings to Insights after conversation is completed.If |
data_retention |
The union field that specifies how data is retained. Even if data is purged because of a retention policy, it might remain in backup storage for a few days without allowing direct access. data_retention can be only one of the following:— — |
You can configure multiple security settings in each location. Each agent specifies the security settings to apply, and you can apply each setting to multiple agents in the same project and location. For more information about data application levels, see data application levels.
If you don't specify security settings in an agent, Dialogflow doesn't apply redaction.
Create a security settings resource
To create a security settings resource in a particular location:
Console
- Go to the Dialogflow CX console.
- Select your Google Cloud project.
- Select your agent.
- Click Agent Settings.
- Click the Security tab.
- Click Manage security settings. The CCAI console opens in a new tab.
- Click Create security settings in the CCAI console.
- Enter security settings configuration.
- Click Create.
API
For information about the create method, see the SecuritySettings type.
Select a protocol and version for the SecuritySettings reference:
| Protocol | V3 | V3beta1 |
|---|---|---|
| REST | SecuritySettings resource | SecuritySettings resource |
| RPC | SecuritySettings interface | SecuritySettings interface |
| C++ | SecuritySettingssClient | Not available |
| C# | SecuritySettingssClient | Not available |
| Go | SecuritySettingssClient | Not available |
| Java | SecuritySettingssClient | SecuritySettingssClient |
| Node.js | SecuritySettingssClient | SecuritySettingssClient |
| PHP | Not available | Not available |
| Python | SecuritySettingssClient | SecuritySettingssClient |
| Ruby | Not available | Not available |
Specify a security setting in agent
To specify a security setting in agent:
Console
- Go to the Dialogflow CX console.
- Select your Google Cloud project.
- Select your agent.
- Click Agent Settings.
- Click the Security tab.
- Select settings in the Security settings drop-down menu.
- Click Save.
API
For information about the patch and update methods, see the Agent type.
Select a protocol and version for the Agent reference:
| Protocol | V3 | V3beta1 |
|---|---|---|
| REST | Agent resource | Agent resource |
| RPC | Agent interface | Agent interface |
| C++ | AgentsClient | Not available |
| C# | AgentsClient | Not available |
| Go | AgentsClient | Not available |
| Java | AgentsClient | AgentsClient |
| Node.js | AgentsClient | AgentsClient |
| PHP | Not available | Not available |
| Python | AgentsClient | AgentsClient |
| Ruby | Not available | Not available |