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

The dynamic-from-file:// syntax is supported for metadata database URLs but not for data source database URLs #10652

Open
Kashish3009 opened this issue Jan 15, 2025 · 0 comments
Labels
c/server Related to server k/enhancement New feature or improve an existing feature

Comments

@Kashish3009
Copy link

Issue description

The dynamic-from-file:// syntax is supported for metadata database URLs but not for data source database URLs in Hasura's current implementation.

Observed per doc: https://hasura.io/docs/2.0/security/dynamic-secrets/#configuration-for-metadata-database

Describe the solution you'd like

Allow users to set DATABASE_URL from_env' variables in metadata/databases.yaml file with the ability to be set to dynamic-from-file for data source database urls, like the graphql metadata env url.

Workaround

When a sed command (a stream editor tool in Unix/Linux) to edit the databases.yaml file during deployment.

This command replaces instances of from_env with dynamic-from-file specifically for staging.

@Kashish3009 Kashish3009 added the k/enhancement New feature or improve an existing feature label Jan 15, 2025
@robertjdominguez robertjdominguez added the c/server Related to server label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/server Related to server k/enhancement New feature or improve an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants