Skip to content

Dynamic Environment Variables / Secret Management (with sops) #94

Answered by Infinidoge
Giftzwerg02 asked this question in Q&A
Discussion options

You must be logged in to vote

What you would want to do would be to create a single file with all of the Minecraft server secrets, where the file contained

rconpwd=passwordhere

Then environmentFile = config.sops.secrets."secrets-file".path;
To actually make use of this, you would use serverProperties."rcon.password" = "@rconpwd@";

This isn't particularly well documented, and definitely could stand to be improved. In particular, the module does not have an option to have different environment files per-server.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Giftzwerg02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #93 on August 16, 2024 00:56.