#704 [Feature Request] File based Environment Variables

Open
opened 3 weeks ago by budimanjojo · 8 comments

Hello, thank you. I just tried Vikunja and love it so much. Can we have file based environment variables like in Docker official image or Linuxserver.io do?
For example:
VIKUNJA_SERVICE_JWTSECRET_FILE=/path/to/file

Thank you

Hello, thank you. I just tried Vikunja and love it so much. Can we have file based environment variables like in Docker official image or Linuxserver.io do? For example: VIKUNJA_SERVICE_JWTSECRET_FILE=/path/to/file Thank you
konrad commented 3 weeks ago
Owner

You mean specifying some variables through a file?

Or a regular config file? Because that's already possible.

You mean specifying some variables through a file? Or a regular config file? Because that's [already possible](https://vikunja.io/docs/config-options/#configuration-options).
konrad added the
kind/feature
label 3 weeks ago
budimanjojo commented 2 weeks ago
Poster

No, I want to use docker secrets to store my sensitive data like this: https://medium.com/@adrian.gheorghe.dev/using-docker-secrets-in-your-environment-variables-7a0609659aab
For example, instead of defining env var like this:
VIKUNJA_SERVICE_JWTSECRET=(secret)
I can use:
VIKUNJA_SERVICE_JWTSECRET_FILE=/path/to/file

No, I want to use docker secrets to store my sensitive data like this: https://medium.com/@adrian.gheorghe.dev/using-docker-secrets-in-your-environment-variables-7a0609659aab For example, instead of defining env var like this: VIKUNJA_SERVICE_JWTSECRET=(secret) I can use: VIKUNJA_SERVICE_JWTSECRET_FILE=/path/to/file
konrad commented 2 weeks ago
Owner

Only for the jwt secret and third party API tokens?

Only for the jwt secret and third party API tokens?
budimanjojo commented 2 weeks ago
Poster

It will be better if you can do them all, just a simple script like the one in the link I posted above. But if you want me to make a list of must have ones, they are:

  • jwt secret
  • database username and password
  • redis username and password
  • smtp username and password
It will be better if you can do them all, just a simple script like the one in the link I posted above. But if you want me to make a list of must have ones, they are: - jwt secret - database username and password - redis username and password - smtp username and password
konrad commented 2 weeks ago
Owner

Do you want to send a pr?

Do you want to send a pr?
budimanjojo commented 2 weeks ago
Poster

Sorry I don't know how to code 😭

Sorry I don't know how to code 😭
konrad commented 2 weeks ago
Owner

Everyone started as a beginner once 🙂

On another note, I opened an issue about this at the viper repo (the config library Vikunja is using): https://github.com/spf13/viper/issues/1022

Everyone started as a beginner once 🙂 On another note, I opened an issue about this at the viper repo (the config library Vikunja is using): https://github.com/spf13/viper/issues/1022
budimanjojo commented 2 weeks ago
Poster

I'm learning, but thank you, awesome to get quick responses from the main author 😁

I'm learning, but thank you, awesome to get quick responses from the main author 😁
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.