-
Notifications
You must be signed in to change notification settings - Fork 61
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 read-only root file-system in jetstream-controller #48
Comments
With The reason we used If we want to use |
maybe we should change to the alpine image like in the nats-server? |
That's correct. To overcome that you can attach a volume with write permissions under the path of the temp dir. |
I created a PR for @mionskowski-form3 suggestion ☝️ |
The jetstream-controller
v0.6.0
attempts to create a temp directory for caching purposes in the current working directory:https://github.com/nats-io/nack/blob/main/controllers/jetstream/controller.go#L146
In the
Dockerfile
the working directory results in/
by default. For security reasons containers may run in a constrained environment with a read-only root file-system. In this case creating a temp directory will fail.It would be great if the base directory in which the temp directory will be created either will be the default OS location (by using
os.MkdirTemp("", "nack")
) or will be made configurable.The text was updated successfully, but these errors were encountered: