-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services/cloudflare-dyndns: require that apiTokenFile be an api token
Previously, this option was supposed to be a file of the form `CLOUDFLARE_API_TOKEN=...`, which has a few problems: - That's not an api token. It's an env file fit for passing to systemd's `EnvironmentFile` option. The user could typo the variable name, or intentionally/unintentionally include unrelated environment variables. - It's not how secret files usually work in NixOS. Secret files are usually just the secret, and don't leak details about how the secret is passed to the service. - This increases friction for people switching between cloudflare dyndns services, such as `services.cloudflare-dyndns` and `services.cfdyndns`, which both have a `apiToken` option, but (before this change) with different semantics.
- Loading branch information
Showing
2 changed files
with
34 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters