CARVIEW |
Securing Splunk Enterprise
- Install Splunk Enterprise securely
- Create secure administrator credentials
- About TLS encryption and cipher suites
- Secure Splunk Enterprise with FIPS
- About default certificate authentication
- Harden the Splunk Enterprise installation directory on Windows
- Secure Splunk Enterprise on your network
- Disable unnecessary Splunk Enterprise components
- Secure Splunk Enterprise service accounts
- Deploy secure passwords across multiple servers
- Harden the network port that App Key Value Store uses
- Best practices for hardening Splunk Enterprise servers and the operating systems they use
- Use network access control lists to protect your deployment
- Use access control to secure Splunk data
- About user authentication
- About configuring role-based user access
- Define roles on the Splunk platform with capabilities
- Create and manage users with Splunk Web
- Create and manage roles with Splunk Web
- Find existing users and roles
- Secure access for Splunk knowledge objects
- Password best practices for administrators
- Configure Splunk password policies
- Configure a Splunk Enterprise password policy using the Authentication.conf configuration file
- Password best practices for users
- Unlock a user account
- Change a user password
- Manage out-of-sync passwords in a search head cluster
- Set up user authentication with LDAP
- Manage Splunk user roles with LDAP
- LDAP prerequisites and considerations
- Secure LDAP authentication with transport layer security (TLS) certificates
- How the Splunk platform works with multiple LDAP servers for authentication
- Configure LDAP with Splunk Web
- Map LDAP groups to Splunk roles in Splunk Web
- Configure single sign-on with SAML
- Configure SSO with PingIdentity as your SAML identity provider
- Configure SSO with Okta as your identity provider
- Configure SSO with Microsoft Azure AD or AD FS as your Identity Provider
- Configure SSO with OneLogin as your identity provider
- Configure SSO with Optimal as your identity provider
- Configure SSO in Computer Associates (CA) SiteMinder
- Secure SSO with TLS certificates on Splunk Enterprise
- Configure Ping Identity with leaf or intermediate SSL certificate chains
- Configure SAML SSO for other IdPs
- Configure authentication extensions to interface with your SAML identity provider
- Configure advanced settings for SSO
- Map groups on a SAML identity provider to Splunk roles
- Modify or remove role mappings
- Troubleshoot SAML SSO
- About multifactor authentication with Duo Security
- Configure Splunk Enterprise to use Duo Security multifactor authentication
- Configure Duo multifactor authentication for Splunk Enterprise in the configuration file
- About multifactor authentication with RSA Authentication Manager
- Configure RSA authentication from Splunk Web
- Configure Splunk Enterprise to use RSA Authentication Manager multifactor authentication via the REST endpoint
- Configure Splunk Enterprise to use RSA Authentication Manager multifactor authentication in the configuration file
- User experience when logging into a Splunk instance configured with RSA multifactor authentication
- About securing inter-Splunk communication
- Configure secure communications between Splunk instances with updated cipher suite and message authentication code
- Securing distributed search heads and peers
- Secure deployment servers and clients using certificate authentication
- Secure Splunk Enterprise services with pass4SymmKey
Create and manage roles in Splunk Enterprise using the authorize.conf configuration file
On Splunk Enterprise, you can create and manage roles by editing the authorize.conf configuration file. This option is not available in Splunk Cloud, you can instead use Splunk Web to create and manage roles.
Users hold roles that determine their level of access and the tasks that they can perform. For more information about roles and capabilities, see About role-based user access.
When you make changes to the authorize.conf file to edit roles you must reload authentication or restart Splunk Enterprise for those changes to take effect. If you do not restart or reload, the roles you added do not appear in the Roles list in Splunk Web. See Refresh the authentication scheme in this topic for instructions to refresh authentication without restarting the Splunk platform.
Never edit or delete roles in the default location of $SPLUNK_HOME/etc/system/default/authorize.conf
. Making edits to this file can cause problems with administrator capabilities on the platform instance. Instead, make role edits in the local version at $SPLUNK_HOME/etc/system/local/authorize.conf
, or in your own custom application directory in $SPLUNK_HOME/etc/apps/
.
For more information about editing configuration files like authorize.conf, see
- authorize.conf
- About configuration files in the Admin Manual.
Distributed search configurations have slightly different authorization needs. When you use search head clustering, you must make sure that the search heads and the search peers all use the same set of authorize.conf files. To confirm that your authorization is properly set up for search pooling, see How authorization works in distributed searches.
Create and manage roles
The general procedure for creating a role to your Splunk Enterprise instance is as follows:
- Use a text editor to edit $SPLUNK_HOME\etc\system\local\authorize.conf.
- Add role stanzas and settings to the file, based on the roles that you want to add to the instance.
- Confirm that your roles stanzas comply with stanza syntax requirements. Failure to do this can result in the platform not creating your roles.
- Save the authorize.conf file and close it.
- Use either Splunk Web or the CLI to either restart Splunk Enterprise or reload authentication.
Role creation syntax for the authorize.conf file
The syntax for adding roles using the authorize.conf file is as follows:
[role_<roleName>] <setting> = <value> <setting> = <value> ...
- The
<roleName>
in the stanza header is the name you want to give your role. - You must include the
role_
in the stanza name. - Role names must use lowercase characters only.
- Role names cannot contain spaces, colons, semicolons, or forward slashes.
See the following examples:
Role name | Role stanza name |
---|---|
security | role_security
|
compliance | role_compliance
|
ninja | role_ninja
|
Manage an existing role
Managing a role means editing the authorize.conf file and making the changes that you want to the roles that are in the file. The same syntax rules apply for modifying roles as do for creating them. The Splunk platform does not see any changes until you save the file and either reload the authentication system or restart the platform.
You can include or change the following settings in the stanza for your role:
Setting | Definition | Default | For more information |
---|---|---|---|
<capability> = enabled
|
You can add any number of capabilities to a role. To add a capability to a role, set that capability to "enabled". | disabled
|
See About defining roles with capabilities. |
importRoles = <role>;<role>;...
|
When this setting has a value, the role that you are defining inherits the capabilities from each role you specify in the value. Members assigned to multiple roles inherit properties from the role with the broadest permissions. If you enter multiple roles, separate them with semicolons. | No roles set. | See Role inheritance. |
srchFilter = <search_string>
|
This setting lets you define detailed data access controls. Users with this role will have their searches filtered by this expression. | No filters are set. | See Search filter format. |
srchTimeEarliest = <integer>
|
The earliest time, in seconds, from which Splunk Enterprise can return results for a search, from the current time. | Not set. There is no limit to when Splunk Enterprise can return search results. | |
srchTimeWin = <integer>
|
The maximum time window, in seconds, that a search executed by a user with this role can use. | Not set. There is no limit to the range of search time. | |
srchDiskQuota = <integer>
|
The maximum amount of disk space, in megabytes, that search jobs performed by a user with this role can take. | 100 | |
cumulativeSrchJobsQuota = <number>
|
The maximum number of concurrently running historical searches that all members of this role can have. For this setting to apply, you must also set enable_cumulative_quota = true in limits.conf .When a user belongs to multiple roles, the user uses searches from the roles with the largest cumulative search quota first. When the quota for that role is completely used up, roles with lower quotas are used. |
Not set. | |
cumulativeRTSrchJobsQuota = <number>
|
The maximum number of concurrently running real-time searches that all members of this role can have. For this setting to apply, you must also set enable_cumulative_quota = true in limits.conf .If the user belongs to multiple roles, the user uses searches from the roles with the largest cumulative search quota first. When the quota for that role is completely used up, roles with lower quotas are used. |
Not set. | |
srchJobsQuota = <int>
|
The maximum number of concurrently running searches that a user with this role can have. | 3 | |
rtSrchJobsQuota = <number>
|
The maximum number of concurrently running real-time searches that a user with this role can have. | 6 | |
srchIndexesDefault = <string>
|
A semicolon-delimited list of default indexes to search when the user does not specify an index in the search. The list can include both event indexes and metrics indexes. When the user runs an event search that does not specify an index, the search runs over the default event indexes. When the user runs a metrics search that does not specify an index, the search runs over the default metrics indexes. |
Not set. | |
srchIndexesAllowed = <string>
|
A semicolon-delimited list of indexes that this role can search. The list can include both event and metrics indexes. You can use wildcards in your entries. However the wildcard '*' will not match internal indexes. To match internal indexes, start with '_'. All internal indexes are represented by '_*'. |
Not set. | |
srchIndexesDisallowed = <string>
|
A semicolon-delimited list of indexes that this role doesn't have permission to search or delete. The list can include both event and metrics indexes. You can use wildcards in your entries. However, the wildcard '*' does not match internal indexes, which all begin with '_'. To match internal indexes, start with '_*'. |
Not set. | |
deleteIndexesAllowed = <string>
|
A semicolon-delimited list of indexes that this role is allowed to delete. This setting must be used in conjunction with the delete_by_keyword capability. You can use wildcards in your entries. However, the wildcard '*' does not match internal indexes, which all begin with '_'. To match internal indexes, start with '_*'. |
Not set. |
Search filter format
The srchFilter
field can include any of the following search terms:
source=
host=
and host tagsindex=
and index nameseventtype=
and event type tagssourcetype=
- search fields
- wildcards
- use
OR
to use multiple terms, orAND
to make searches more restrictive.
The search terms cannot include:
- saved searches
- time operators
- regular expressions
- any fields or modifiers Splunk Web can overwrite
Example of creating a role in the authorize.conf file
The following example creates the "ninja" role, which inherits capabilities from the default "user" role. The "ninja" role has almost the same capabilities as the default "power" role, except it cannot schedule searches. In addition:
- The search filter limits ninja to searching on
host=foo
. - ninja can search all public indexes, that do not start with _, and will search the indexes
mail
andmain
if a user with the ninja role does not specify an index in the search. - ninja can run up to 8 search jobs and 8 real-time search jobs concurrently.
- ninja can take up to 500MB total space on disk for all its jobs.
[role_ninja] rtsearch = enabled importRoles = user srchFilter = host=foo srchIndexesAllowed = * srchIndexesDefault = mail;main srchJobsQuota = 8 rtSrchJobsQuota = 8 srchDiskQuota = 500
Refresh the authentication scheme
After you make changes to the authorize.conf file, you must refresh the authentication system to have the changes take effect.
You can do this with either Splunk Web or the CLI. Refreshing the authentication scheme doesn't log users off of the instance.
A restart of the Splunk platform reloads authentication, but it also logs users off of the system. You do not need to restart the platform to refresh authentication.
Refresh the authentication system using Splunk Web
- From the system bar, click Settings > Access controls > Authentication method.
- Click Reload authentication configuration. This refreshes the authentication caches but does not boot current users from the system.
Refresh the authentication system using the CLI
- On the Splunk platform instance where you want to reload authentication, open a shell prompt or PowerShell window.
- Switch to the
$SPLUNK_HOME/bin
directory. - Use the CLI command
./splunk reload auth
:
./splunk reload auth
The authentication system cache resets immediately.
Secure access for Splunk knowledge objects | Configure users with the CLI |
This documentation applies to the following versions of Splunk® Enterprise: 8.2.0, 8.2.1, 8.2.2, 8.2.3, 8.2.4, 8.2.5, 8.2.6, 8.2.7, 8.2.8, 8.2.9, 8.2.10, 8.2.11, 8.2.12
Comments
Create and manage roles in Splunk Enterprise using the authorize.conf configuration file
You must be logged into splunk.com in order to post comments. Log in now.
Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.
Your Comment Has Been Posted Above
Feedback submitted, thanks!