Expose all env vars to deployment #393
Closed
opened 2023-01-26 09:05:32 +00:00 by decentral1se
·
3 comments
Labels
Clear labels
abra
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
design
documentation
duplicate
enhancement
fedi
fedi-infra
finance
funding
good first issue
help wanted
installer
legal
performance
proposal
question
security
test
wontfix
Everything to do with abra
Ping/pong on comms
Something is not working
Go build related issues
Getting the robots into the mix
Opening this thing up
Contributors stuff
Our main website
Design thinking required
Let's write things together
This issue or pull request already exists
New feature
Democratic decision making
Money things
Anything related to grant funding
Easy start with development
Need some help
Installation related issues
Performance related
Large change which requires feedback & decisin making
More information is needed
Securing our shit
Unit or integration test suite
This won't be fixed
No labels
enhancement
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/organising#393
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Follows from coop-cloud/organising#236 (comment) and will help
kadabrarun updates without having to have a copy of the local workstation env files. Does anyone have any concerns?From coop-cloud/organising#236 (comment)
@moritz
So, afaiu the app is loaded from the filesystem and then the env vars are passed as
app.Envinto the underlying docker lib compose loading functions. I'm not sure we inject env vars into the running container programmatically atm, this could be new?My guess would be that you can programmatically stuff them into the
environment: ...stanza and they'll then become available in the container. You could do this for each app service, seems fine?This seems to be available after the compose configs are merged and returned up the stack. The
Environmentseems to be available in theServiceConfigwhich you could override somewhere.Those are my initial thoughts!
Expose all env vars to deployment appto Expose all env vars to deploymentExposing all env variables to the app container:
da46996e6bI'm not sure if it's better and maybe less error prone to pass them inside a label?
But at the moment I don't see any issues with the current approach.
That's wonderful 👏
I guess the issue with putting the env vars on the label is that most operators won't expect it? Env vars are usually to be found in the container run-time environment (e.g. when you run
envin the shell). Unless we're saying that only internal tooling will look for these labels, then I can understand doing potentially both at the same time?It seems we need to poll the community to see if people are using their env files to pass secret values iiuc /cc @mayel and potentially others may be doing this. And I wouldn't blame anyone because loading a new secret into the recipe involves a bit of busy work in the recipe config...
p4u1 referenced this issue2024-03-11 12:57:14 +00:00