I just think we could have more flexible way of pa...
# spicedb
r
I just think we could have more flexible way of passing credentials and datastore host. Currently I have host, user and password stored in another secret (generated by another operator). I wished there was a way to reuse this by the operator, either by passing them as env variables or being able to point at them so operator could build datastore_uri itself. When writing deployment on my own I could write something like
Copy code
- name: PG_USER
              valueFrom:
                secretKeyRef:
                  name: pguser-credentials-secret
                  key: user
- name: PG_PASSWORD
              valueFrom:
                secretKeyRef:
                  name: pguser-credentials-secret
                  key: password
- name: PG_HOST
              valueFrom:
                secretKeyRef:
                  name: pguser-credentials-secret
                  key: host
- name: "SPICEDB_DATASTORE_CONN_URI"
              value: postgres://$(PG_USER):$(PG_PASSWORD)@$(PG_HOST):5432/spicedb
8 Views