-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
This is a first step to make our helm chart aware of PostgreSQL.
This is the user experience we want to achieve:
- By default, we take care of creating a PostgreSQL that is used by SBOMbastic
- The user can disable the creation of the database and just point us to an existing one to be used
Acceptance criteria
- By default a PostgreSQL database is created, these are its requirements:
- Must be persistent
- Credentials must be randomly created and stored inside of a Secret
- Connection must be secured with a certificate that is generated by cert-manager
- Certificate rotation must be handled
- The user can disable the creation of the PostgreSQL database and point use to an existing one. The user must also point us to a Secret that contains the user credentials. It also must provide us a ConfigMap the holds the CA used to validate the TLS endpoint
- All the data (Secrets, ConfigMaps) are mounted into the storage pods
- Ensure everything works smoothly inside of the tilt dev environment
- The CNPG instances and storage (class and size) are tunable
- The user can opt-out from the CNPG cluster creating and provide their own secret