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

Support reading databaseUri from a file #101

Open
raj-saxena opened this issue Jan 22, 2024 · 0 comments
Open

Support reading databaseUri from a file #101

raj-saxena opened this issue Jan 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@raj-saxena
Copy link

raj-saxena commented Jan 22, 2024

Seems like right now, the only way to pass database credentials is through a Kubernetes secret, that is then referenced by datastore.uriSecret. While this works with static credentials, it fails when using dynamic credentials that are generated by a database secret engine like Vault (since they are newly generated each time).

Vault provides a vault-injector for Kubernetes that retrieves the secrets and can make them available on a file path in the following ways:
https://developer.hashicorp.com/vault/docs/platform/k8s/injector/examples

But, for this, the app should support reading credentials from a path. Is this something that can be easily supported by FGA?

An alternative could be to read the values from environment variables but then, you'll have to allow passing the command and args parameters to correctly export the variables before starting the service.
https://developer.hashicorp.com/vault/docs/platform/k8s/injector/examples#environment-variable-example
image

@raj-saxena raj-saxena changed the title Support reading databaseUri from file Support reading databaseUri from a file Jan 22, 2024
@rhamzeh rhamzeh added the enhancement New feature or request label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants