-
Notifications
You must be signed in to change notification settings - Fork 349
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
Environment variable names for configuration #2263
Comments
If you run See Lines 223 to 247 in 136595b
|
@enocom As far as I could find in the docs, there is no available env var for passing auth tokens when using the Would this be an acceptable PR to merge? (I can track this by filing a separate issue, if desired) |
Do you mean |
No, not that one, which just maps to |
Does |
Related to this, I have been looking at the code and docs, and to be honest, I find it a bit confusing. Looking at the GitHub Workflow tests and the .envrc.example file, I see for example for the connection name, it can be defined with a variable per type of database:
but then, in multiple places, the environment variable mentioned is just This is just an example, but in summary, I think it would be nice to document all the different variables and configurations, which are now spread between the README.md, CLI help, and just code. |
The best docs we have right now are in the help message -- but agreed that we should surface that better in the README. Also, by the way, the |
@hessjcg @enocom thanks for that PR #2264! Still, I think it could be useful to have all the possible configurations documented somewhere. In the README there are many features explained with their flag, but not all. Ideally, this should be generated from the source code to avoid having to maintain duplicates. Is there anything against using the automatic Cobra MarkDown docs generator? If not, may I look into adding it and open a PR? 😃 |
This is something we have wanted to fix for a while, I agree there should be one source of truth that generates the README. We actually created an issue for tracking this work but none of us on the team have had the time to get to it yet #2064
I personally don't have anything against the Cobra MarkDown generator but I also don't have any experience with it personally. I will let @enocom and @hessjcg weigh in as well if they are familiar with it.
Of course! We absolutely love to take contributions from the community. That would be amazing 👏 |
@froblesmartin Have you looked at the We're working on this same issue for AlloyDB here: GoogleCloudPlatform/alloydb-auth-proxy#709. We'll take a look at the docs generator -- that might be a nice option. |
@enocom @jackwotherspoon FYI I have opened #2336 😉 |
Description
Documentation mentions:
The Cloud SQL Auth Proxy has support for:
Configuration with environment variables
However I can't seem to find any details on what exactly the names of environment variables should be?
Potential Solution
No response
Additional Details
No response
The text was updated successfully, but these errors were encountered: