Permissions
The Lynx AI Agent operates within Splunk's security model, inheriting the permissions of the logged-in user. This ensures that the agent can only access data and perform actions that the user is authorized to perform.
Access to the agent is controlled through Splunk roles, and all operations respect the user's existing permissions for indexes, apps, and knowledge objects.
Splunk Role
The app ships with a built-in role named lynx-ai.
Users must be assigned the lynx-ai role (or the admin role, or sc_admin on Splunk Cloud Platform) for the agent to function and be accessible.
Note
The agent inherits the permissions of the logged-in user, thereby gaining access to apps, indexes and knowledge objects. If a user can't access data, neither can the agent.
Capabilities
The lynx-ai role includes the following capabilities:
| Capability | Description | In User role (default) |
|---|---|---|
list_storage_passwords |
Required to read the encrypted license key from Splunk's password storage (/storage/passwords). |
No |
rest_properties_get |
Required to read app configuration properties via the REST API (/services/properties). |
Yes |
search |
Required to execute Splunk searches. The agent uses this capability to query indexes and knowledge objects. | Yes |
db_connect_read_app_conf |
Versions of Splunk DB Connect prior to 4.2 contain a bug where users without this capability cannot access app.conf properties. Adding this capability is required to fix this issue. It has no effect on version 4.2 or later, or if DB Connect is not installed. |
No |
Reporter Role
The app also ships with a lynx-ai-reporter role for users who should see the Activity Dashboard without being administrators.
It imports the lynx-ai role and adds read access to the dashboard and to the _internal index it reads from.
Background Role
The app also ships with a lynx-ai-background role for users who should create and run background agents.
It imports the lynx-ai role and adds the following capabilities:
| Capability | Description |
|---|---|
schedule_search |
Required to schedule the saved searches that start background agents. |
edit_tokens_own |
Required for each run to get, and delete when done, the short-lived authentication token it runs with. |
list_tokens_own |
Required to count the user's running background agents against the concurrent run limit. |
The role also grants read access to the Background Agents page, the background agent alert action, and the Lynx AI Runtime Add-on.
Knowledge Objects
The agent operates with read-only access to knowledge objects. This is scoped to the user's permissions - the agent cannot access data that the user does not have access to.
The agent can produce XML code for dashboards. In this case, the user can save the dashboard produced by the agent into any app they choose, subject to their write permissions on it.
Note that this is a user-initiated action, as the agent does not currently have the ability to autonomously create knowledge objects.
Currently supported knowledge objects:
- Dashboards
- Saved Searches (Alerts, Reports)
- Macros
- Lookup Definitions
- Lookup Files
- Data Models
- Field Extractions
- Custom Commands
- Event Types
- Event Tags
- KV Store Collections
Risky Commands
Some SPL commands write, delete, transmit, or execute rather than just read. The agent still writes them into a query when they're the right answer, but it never runs them: the query can't be opened in Search, and a dashboard containing one can't be saved.
Admins can allow a limited subset of them through allow_list, and mark additional commands as risky with a riskyCommand stanza. The most destructive commands are always blocked and cannot be allowed. See ai.conf for both lists and the settings.
KV Store Access
The agent uses Splunk's KV Store to persist its data. Each user's data is isolated and private.
| Collection | Holds |
|---|---|
chat_history |
Conversations, one record per chat. See Chat History. |
user_settings |
Per-user skills, connectors and default model. |
admin_settings |
Organization-wide system skills and retryable errors, managed by admins. |
feedback |
Thumbs up/down ratings left on the agent's responses. |
Requirements
- KV Store must be enabled on the Search Head for chat history, skills, connectors and background agents to function.
- Users automatically have read and write access to their own KV Store collections through the
lynx-airole. - Administrators with the
adminorsc_adminrole can view all users' KV Store data if needed.
Data Privacy
Chat conversations and user settings are stored per user in separate KV Store collections. Non-admin users can only access their own data, ensuring privacy and security across the organization.
For more information about chat history storage, see Chat History.