Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling users and certificates with cockroach operator #1000

Open
simonebenati opened this issue Jul 26, 2023 · 0 comments
Open

Handling users and certificates with cockroach operator #1000

simonebenati opened this issue Jul 26, 2023 · 0 comments

Comments

@simonebenati
Copy link

  • Is your feature request related to a problem? Please describe.

The issue I'm having is generating new db users and creating the relative certificates and then distributing them. with self hosted cockroachdb

  • Describe the solution you'd like

A CR to handle users and authentication kind: CrdbUser (?)

  • Describe alternatives you've considered

Better explanation with the current tools on how to handle the creation and then the distribution of certificates at large scale.

  • Additional context

At the moment the things I do to generate a certificate with the cockroachdb self signed ca are:

create a crdb-client-secure pod with the following piece added:

          - secret:
              name: cockroachdb-root
              items:
                - key: tls.crt
                  path: client.root.crt
                - key: tls.key
                  path: client.root.key
                - key: ca.crt
                  path: ca.crt

ca.crt is taken from the cockroachdb-root secret

  1. login as root, create user xyz, grant permission
  2. create a folder 'certs'
  3. create the certs via cockroach certs
  4. cat of each cert created and saving it on my machine to distribute them
    This feels super weird to do and I extensively read the documentation but haven't found any better way. This isn't in the documentation aswell and I came up with this after many attempts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant