-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/dendrite: add an option loadCredential #164135
nixos/dendrite: add an option loadCredential #164135
Conversation
The change LGTM, I wanted to do this but there were issues at the time with systemd 247 (start reading here if interested in the context) |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
/marvin opt-in |
Hi! I'm an experimental bot. My goal is to guide this PR through its stages, hopefully ending with a merge. You can read up on the usage here. |
Reminder: Please review! This Pull Request is awaiting review. If you are the assigned reviewer, please have a look. Try to find another reviewer if necessary. If you can't, please say so. If the status is not accurate, please change it. If nothing happens, this PR Note: This feature is currently broken. The bot will not actually change the status. If you see this message multiple times, please request a status change manually. |
/status needs_reviewer |
Reminder: Please review! This Pull Request is awaiting review. If you are the assigned reviewer, please have a look. Try to find another reviewer if necessary. If you can't, please say so. If the status is not accurate, please change it. If nothing happens, this PR Note: This feature is currently broken. The bot will not actually change the status. If you see this message multiple times, please request a status change manually. |
I don't think deprecating I agree with adding the |
We should use the new option in the test. |
You are right. Some options in the Using |
2e80b1e
to
ebfe44d
Compare
db2cbc1
to
f1b39fc
Compare
Thanks for the review. Changes have been made. |
31dfbde
to
a1eb796
Compare
Can we merge this since changes have been made as required? @dotlambda @SuperSandro2000 |
I don't use dendrite anymore. |
I missed this, sorry. |
systemd-247 provides a mechanism called LoadCredential for secrets and it is better than environment file. See the section of Environment= in the manual of systemd.exec for more information. Some options in config.yaml need values to be strings, which currently can be used with environmentFile but not loadCredential. But it's possible to use loadCredential for those options, e.g. we can substitute their values in ExecStart, but not in ExecStartPre due to [1]. [1]: systemd/systemd#19604
a1eb796
to
7c9d130
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should still merge this because it's necessary for anyone who does use dendrite.
cc @tim-tx
Well, it's not necessary, just an improvement of UX. Anyway, I will be happy if it gets merged. |
@ofborg test dendrite |
Successfully created backport PR #175356 for |
Description of changes
systemd-247 provides a mechanism called LoadCredential for secrets and
it is better than environment file. See the section of Environment=
in the manual of systemd.exec for more information.
Some options in config.yaml need values to be strings, which currently
can be used with environmentFile but not loadCredential. But it's
possible to use loadCredential for those options, e.g. we can
substitute their values in ExecStart, but not in ExecStartPre due to
1.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes