Authentication, Permissions and Global Settings
After installation, the system administrator should configure Rancher to configure authentication, authorization, security, default settings, security policies, drivers and global DNS entries.
First Log In
After you log into Rancher for the first time, Rancher will prompt you for a Rancher Server URL.You should set the URL to the main entry point to the Rancher Server. When a load balancer sits in front a Rancher Server cluster, the URL should resolve to the load balancer. The system will automatically try to infer the Rancher Server URL from the IP address or host name of the host running the Rancher Server. This is only correct if you are running a single node Rancher Server installation. In most cases, therefore, you need to set the Rancher Server URL to the correct value yourself.
After you set the Rancher Server URL, we do not support updating it. Set the URL with extreme care.
Authentication
One of the key features that Rancher adds to Kubernetes is centralized user authentication. This feature allows to set up local users and/or connect to an external authentication provider. By connecting to an external authentication provider, you can leverage that provider's user and groups.
For more information how authentication works and how to configure each provider, see Authentication.
Authorization
Within Rancher, each person authenticates as a user, which is a login that grants you access to Rancher. Once the user logs in to Rancher, their authorization, or their access rights within the system, is determined by the user's role. Rancher provides built-in roles to allow you to easily configure a user's permissions to resources, but Rancher also provides the ability to customize the roles for each Kubernetes resource.
For more information how authorization works and how to customize roles, see Roles Based Access Control (RBAC).
User Retention
In Rancher v2.7.14 and later, you can enable user retention. This feature automatically removes inactive users after a configurable period of time.
The user retention feature is disabled by default.
For more information, see Enabling User Retention.
Pod Security Policies
Pod Security Policies (or PSPs) are objects that control security-sensitive aspects of pod specification, e.g. root privileges. If a pod does not meet the conditions specified in the PSP, Kubernetes will not allow it to start, and Rancher will display an error message.
For more information how to create and use PSPs, see Pod Security Policies.
Provisioning Drivers
Drivers in Rancher allow you to manage which providers can be used to provision hosted Kubernetes clusters or nodes in an infrastructure provider to allow Rancher to deploy and manage Kubernetes.
For more information, see Provisioning Drivers.
Adding Kubernetes Versions into Rancher
With this feature, you can upgrade to the latest version of Kubernetes as soon as it is released, without upgrading Rancher. This feature allows you to easily upgrade Kubernetes patch versions (i.e. v1.15.X
), but not intended to upgrade Kubernetes minor versions (i.e. v1.X.0
) as Kubernetes tends to deprecate or add APIs between minor versions.
The information that Rancher uses to provision RKE clusters is now located in the Rancher Kubernetes Metadata. For details on metadata configuration and how to change the Kubernetes version used for provisioning RKE clusters, see Rancher Kubernetes Metadata.
Rancher Kubernetes Metadata contains Kubernetes version information which Rancher uses to provision RKE clusters.
For more information on how metadata works and how to configure metadata config, see Rancher Kubernetes Metadata.
Global Settings
Options that control certain global-level Rancher settings are available from the top navigation bar.
Click ☰ in the top left corner, then select Global Settings, to view and configure the following settings:
- Settings: Various Rancher defaults, such as the minimum length for a user's password (
password-min-length
). You should be cautious when modifying these settings, as invalid values may break your Rancher installation. - Feature Flags: Rancher features that can be toggled on or off. Some of these flags are for experimental features.
- Banners: Elements you can add to fixed locations on the portal. For example, you can use these options to set a custom banner for users when they login to Rancher.
- Branding: Rancher UI design elements that you can customize. You can add a custom logo or favicon, and modify UI colors.
- Performance: Performance settings for the Rancher UI, such as incremental resource loading.
- Home Links: Links displayed on the Rancher UI Home page. You can modify visibility for the default links or add your own links.
Enabling Experimental Features
Rancher includes some features that are experimental and/or disabled by default. Feature flags allow you to enable these features. For more information, refer to the section about feature flags.
Global Configuration
Global Configuration options aren't visible unless you activate the legacy feature flag. The legacy flag is disabled by default on fresh Rancher installs of v2.6 and later. If you upgrade from an earlier Rancher version, or activate the legacy feature flag on Rancher v2.6 and later, Global Configuration is available from the top navigation menu:
- Click ☰ in the top left corner.
- Select Global Configuration from the Legacy Apps.
The following features are available under Global Configuration:
- Catalogs
- Global DNS Entries
- Global DNS Providers
As these are legacy features, please see the Rancher v2.0—v2.4 docs on catalogs, global DNS entries, and global DNS providers for more details.