Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add envsubst so dns-conf credentials can be added from container environment variables

Open
#276 7 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
dockerfile
Domain
devops

Research direction

Start by tracing the container-start path and inspect /config/dns-conf/cloudflare.ini, along with the compose or .env inputs mentioned in the issue. Check how envsubst is available in the image and whether other DNS-provider files follow the same pattern. Done means supported environment variables populate configuration at startup without requiring duplicate credentials in tracked files.

Written by the indexing model from the issue text.

Description

awaiting-approval

Desired Behavior

Instead of editing /config/dns-conf/cloudflare.ini to hardcode email and API key/token and drag that sensitive credentials through Git (my case), I'd like to have envsubst triggered on container start that takes environment variables like EMAIL and CF_API_TOKEN and replaces those environment variables in files.

Considering user already adds these values to their compose or .env file, it makes little sense to have same creds added in multiple locations if they can be added automatically.

I'm guessing this behavior is applicable to other DNS providers as well.

Current Behavior

The user needs to add the same environment variable values multiple times, once in compose file and second time to cloudflare.ini.

Alternatives Considered

Manually maintaining the same values in multiple places and accidentally checking sensitive creds to git for people who version their setups.

Dominant language
Dockerfile
Stars
3.7k
Forks
275
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxserver/docker-swag

All issues in linuxserver/docker-swag

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.