Skip to content
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

systemd hardening #68

Merged
merged 3 commits into from
May 7, 2023
Merged

systemd hardening #68

merged 3 commits into from
May 7, 2023

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented May 7, 2023

No description provided.

@Mic92 Mic92 force-pushed the systemd branch 7 times, most recently from 9fceada to 5226d4b Compare May 7, 2023 14:32
@Mic92 Mic92 merged commit 636318e into master May 7, 2023
group = "harmonia";
};
groups.harmonia = { };
};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This broke some logic I inherited from @NinjaTrappeur that was passing a signing key into Harmonia from a sops location:

      nix-signing-key = {
        restartUnits = [ "harmonia.service" ];
        owner = config.users.users.harmonia.name;
        mode = "0440";
      };

Looks like the two ways forward here are systemd's LoadCredential scheme (which will make a file available read-only to the unit's user/environment) or else switching from a file to an environment variable. Any thoughts on which of these would be preferable or if there's another option I'm missing?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, there's an existing discussion on this in Mic92/sops-nix#198.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Yes, that's helpful and I do now see how the pieces fit together. I think our original deployment predated the introduction of LoadCredential on your side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants