Security checklist
You can apply security measures to protect your YugabyteDB Anywhere instance and YugabyteDB universes.
Network Security
You need to ensure that YugabyteDB Anywhere and the database run in a trusted network environment. You should restrict machine and port access, based on the following guidelines:
- Servers running YugabyteDB services are directly accessible only by YugabyteDB Anywhere, servers running the application, and database administrators.
- Only YugabyteDB Anywhere and servers running applications can connect to YugabyteDB services on the RPC ports. Access to the YugabyteDB ports should be denied to everybody else.
For information on configuring ports, refer to Configure ports.
Database authentication
Authentication requires that all clients provide valid credentials before they can connect to a YugabyteDB universe. The authentication credentials in YugabyteDB are stored internally in the YB-Master system tables. The authentication mechanisms available to users depends on what is supported and exposed by the YSQL and YCQL APIs.
You enable authentication for the YSQL and YCQL APIs when you deploy a universe. See Enable database authentication.
YugabyteDB Anywhere and YugabyteDB also support LDAP and OIDC for managing authentication. See Database authentication.
For more information on authentication in YugabyteDB, see Enable authentication.
Role-based access control
Roles can be assigned to grant users only the essential privileges based on the operations they need to perform in YugabyteDB Anywhere, and in YugabyteDB universes.
To manage access to your YugabyteDB Anywhere instance, typically you create a Super Admin role first. The Super Admin can create additional admins and other users with fewer privileges. For information on how to manage YugabyteDB Anywhere users and roles, see Manage YugabyteDB Anywhere users.
For information on how to manage database roles and users, see Database authorization.
Encryption in transit
Encryption in transit (TLS) ensures that network communication between servers is secure. You can configure YugabyteDB to use TLS to encrypt intra-cluster and client to server network communication. You should enable encryption in transit in YugabyteDB universes and clients to ensure the privacy and integrity of data transferred over the network.
For more information, see Enable encryption in transit.
Encryption at rest
Encryption at rest ensures that data at rest, stored on disk, is protected. You can configure YugabyteDB universes with a user-generated symmetric key to perform universe-wide encryption.
Encryption at rest in YugabyteDB Anywhere uses a master key to encrypt and decrypt universe keys. The master key details are stored in YugabyteDB Anywhere in key management service (KMS) configurations. You enable encryption at rest for a universe by assigning the universe a KMS configuration. The master key designated in the configuration is then used for generating the universe keys used for encrypting the universe data.
For more information, see Enable encryption at rest.