-
Notifications
You must be signed in to change notification settings - Fork 290
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
Request: Docs on providing environmental variables to shiny-server #557
Comments
Any progress on this? Anyone have any updates on solutions or workarounds? We are suffering the same issue. Thanks! |
I deploy our shiny apps via Google Cloud & Cloud Run, and my workaround for this has been to:
So, if I have a secret I also use the I imagine AWS and Azure can do the same thing, but I'm not familiar with the names of their services. |
The following lines, if included in a Dockerfile, will rewrite the
I can only imagine that the fact that Shiny server does not do this is a commercial decision by Posit. Credit to this blog post, where I (think) I got the outline of the solution. Tested as of version 1.5.23.1020. |
I'm trying to run shiny-server within a docker container. For example:
However, it appears that shiny-server wipes most environmental variables, according to this old thread. The thread pointed to a discussion in which the solution was to write the environmental variables (potentially sensitive secrets) in a file in the docker container, which I thought was a big security risk.
For the sake of security when developers deploy shiny apps with shiny-server, it would be great to have specific docs on how to deal with environmental variables and secrets handling. At least, I cannot find an such info in the docs.
The text was updated successfully, but these errors were encountered: