Giter Club home page Giter Club logo

Comments (16)

nrdxp avatar nrdxp commented on August 25, 2024 1

I've been exploring possibly integrating agenix support, so that we can store encrypted secrets properly. More experimentation is needed.

from digga.

Pacman99 avatar Pacman99 commented on August 25, 2024 1

Personal opinion: devos shouldn't include secrets management, outside of git-crypt - just to protect new users.

secrets management is a very wide concern and everyone has different requirements. And with the extern folder, its really easy to set up stuff yourself. I was able to use agenix with my server, by just adding the input then the module in extern. Then I just followed agenix instructions with creating a secrets.nix file in the secrets folder.

What could be useful is maybe adding documentation on how to integrate different secrets management tools with devos.

from digga.

blaggacao avatar blaggacao commented on August 25, 2024 1

I don't quite understand this statement:

sops has ugly configmgt domain overlap with nix.

This question actually came up before. Expanding on my previous reply...

From the asciinema animation on the github repo:

SOPS encrypts the values of a yaml or json file not the keys.

Hence, the tool was designed to do work on and as a function of an authoritative yaml/json file.

I think divnix/devos tries to put all (core) configuration management under the domain of the nix (later maybe nickel) language. Insofar sops appears (to me) a bit incompatible with this repository's goals and philosophy, and agenix seems like the better option.

from digga.

blaggacao avatar blaggacao commented on August 25, 2024 1

https://github.com/FiloSottile/age/releases/tag/v1.0.0-rc.1 (breaking news šŸ˜ø )

from digga.

blaggacao avatar blaggacao commented on August 25, 2024 1

Thought fodder:

After reading through this blog post, one realizes, this issue perfectly meats with #163 to shoot two birds with one shot.

/cc @Xe

from digga.

adrian-gierakowski avatar adrian-gierakowski commented on August 25, 2024

ugly configmgt domain overlap with nix

@blaggacao Iā€™m curious what you meant by this. Would you be able to elaborate? Thanks!

from digga.

blaggacao avatar blaggacao commented on August 25, 2024

Sure. Its direct manifestation is that sops has a separate yaml config file. I really like the agenix since it keeps the configuration domain within the (power of the) nix language entirely.

@FlorianFranzen for practical reasons, I'll probably using git-crypt as provided currently by this repo, too. But I think agenix is really a very good idea for those inclined to try stuff out. I feel it has real chances to become the better alternative...

from digga.

nrdxp avatar nrdxp commented on August 25, 2024

Personally, I'd just like to have secrets that aren't world readable when deployed. I'll still probably keep git-crypt available even if we do add support for agenix since they address separate concerns, i.e:

git-crypt -> protects secrets stored in the repo
agenix -> protects secrets deployed to nix-store

Of course, I still have to experiment with agenix to see how well it delivers on this promise.

from digga.

blaggacao avatar blaggacao commented on August 25, 2024

I researched a little. I seems at least conceivable in principle that agenix can extend its scope to support the git crypt use case in an unified way.

from digga.

blaggacao avatar blaggacao commented on August 25, 2024

ryantm/agenix#12

from digga.

blaggacao avatar blaggacao commented on August 25, 2024

please, if anyone feels (more) competent / confident (than me), take over: ryantm/agenix#14

from digga.

blaggacao avatar blaggacao commented on August 25, 2024

There has been made an important argument here:

Unless we can come up with some better plan for how to import the files into the NixOS configuration, they need to be encrypted at rest.

meaning git.filter.agenix.smudge and git.filter.agenix.clean are vetoed for the time being (agenix has agenix --edit <file> for the remainder of the use case), leaving us with git.diff.agenix.textconv ā€” yaay!

from digga.

ymarkus avatar ymarkus commented on August 25, 2024

Is there any progress with secrets? I don't really care how it's done, but I would really like a solution integrated in this template. I've thought about doing something like sops-nix or something with pass?

from digga.

nrdxp avatar nrdxp commented on August 25, 2024

@ymarkus, unfortunately not, but it's on the agenda. After reviewing the options, my prefered solution would use gopass, but I've yet to work out all the details. I'll have more time this month than last, so hopefully we can get this knocked out soon.

from digga.

codygman avatar codygman commented on August 25, 2024

I don't quite understand this statement:

sops has ugly configmgt domain overlap with nix.

I was just investigating sops-nix after having lots of issues with git-crypt (maybe because I'm using an ed25519 gpg key) and it seemed like the most convenient option here.

I'm not sure how a gopass based solution might work though.

from digga.

nrdxp avatar nrdxp commented on August 25, 2024

@blaggacao, I agree. I looked at sops and it didn't seem appealing for this project. Honestly, none of the options are absolutely ideal, and I keep wondering why Nix hasn't solved this problem by now, as it was one of the earliest issues opened on the GitHub tracker, some 9 years ago: NixOS/nix#8. I must be missing something important, because changing permissions inside the nix store, or perhaps having a separate nix/secret-store with secure permissions doesn't seem like it should be all that difficult.

Alas...

from digga.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.