You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
New to KubeDB? Please start here.
Rotate Authentication of PostgreSQL
This guide will give an overview on how KubeDB Ops-manager operator Rotate Authentication configuration.
Before You Begin
- You should be familiar with the following KubeDBconcepts:
How Rotate PostgreSQL Authentication Configuration Process Works
The authentication rotation process for PostgreSQL using KubeDB involves the following steps:
- A user first creates a - PostgreSQLCustom Resource Object (CRO).
- The - KubeDB Provisioner operatorcontinuously watches for- PostgreSQLCROs.
- When the operator detects a - PostgreSQLCR, it provisions the required- PetSets, along with related resources such as secrets, services, and other dependencies.
- To initiate authentication rotation, the user creates a - PostgreSQLOpsRequestCR with the desired configuration.
- The - KubeDB Ops-manageroperator watches for- PostgreSQLOpsRequestCRs.
- Upon detecting a - PostgreSQLOpsRequest, the operator pauses the referenced- PostgreSQLobject, ensuring that the Provisioner operator does not perform any operations during the authentication rotation process.
- The - Ops-manageroperator then updates the necessary configuration (such as credentials) based on the provided- PostgreSQLOpsRequestspecification.
- After applying the updated configuration, the operator restarts all - PostgreSQLPods so they come up with the new authentication environment variables and settings.
- Once the authentication rotation is completed successfully, the operator resumes the - PostgreSQLobject, allowing the Provisioner operator to continue its usual operations.
In the next section, we will walk you through a step-by-step guide to rotating PostgreSQL authentication using the PostgreSQLOpsRequest CRD.































