New to KubeDB? Please start here.
Rotate Authentication of Oracle
Rotate Authentication is a feature of the KubeDB Ops-manager operator that allows you to rotate the authentication credentials (the database password) of an Oracle database without manual intervention. This is useful for security compliance and credential hygiene.
Before You Begin
- You should be familiar with the following
KubeDBconcepts:
How Rotate Oracle Authentication Configuration Process Works
The authentication credentials of an Oracle database are stored in a Kubernetes Secret (by default <db-name>-auth) containing the username and password keys. By default, the privileged user is SYS (connected as SYSDBA).
There are two ways to rotate the authentication of an Oracle database:
Operator generated credentials: When you create an
OracleOpsRequestof typeRotateAuthwithout referencing any user provided secret, the KubeDB Ops-manager operator generates a new random password, applies it to the database withALTER USER <user> IDENTIFIED BY "<new-password>", and updates the auth secret. The previous credentials are preserved under the.prev(and the upcoming under.next) keys of the auth secret, so an application that still holds the old password has a grace window to migrate.User defined credentials: You can supply your own credentials by creating a
Secretof typekubernetes.io/basic-authand referencing it throughspec.authentication.secretRef.namein theOracleOpsRequest. The operator applies the password from that secret to the database.
Note: Oracle does not allow renaming the
SYSuser. Therefore, the rotate authentication operation rotates the password only; theusernameremainssys.
The high level steps the Ops-manager operator performs during a RotateAuth operation are:
- Update the credential (generate a new password or read the user provided secret).
- Update the related
PetSets so the new secret is mounted into the pods. - Restart the database pods (one at a time) so they pick up the new credential.
- Mark the
OracleOpsRequestasSuccessful.
In the next section, we will walk you through a step-by-step guide on rotating authentication of an Oracle database using OracleOpsRequest.
Next Steps
- Detail concepts of Oracle object.
- Want to hack on KubeDB? Check our contribution guidelines.
⚠️ Legal Notice
Oracle® and Oracle Database® are registered trademarks of Oracle Corporation. KubeDB is not affiliated with, endorsed by, or sponsored by Oracle Corporation.
KubeDB provides only orchestration and management tooling for Kubernetes. It does not distribute, bundle, ship, or include any Oracle Database software or binaries.
Users must provide their own Oracle container images and hold valid Oracle licenses. Users are solely responsible for compliance with Oracle’s licensing terms, including all rules regarding containers, Docker, and Kubernetes environments.
KubeDB makes no representations or warranties regarding Oracle licensing compliance.































