NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.06k forks source link

CodiMD does not provide options for storing db password outside the Nix store #73502

Open gbiscuolo opened 4 years ago

gbiscuolo commented 4 years ago

I'm going to use the CodiMD service but AFAIU there is no way to store the database password outside the store (see #24288).

Is it please possible to add an option - e.g. services.codimd.configuration.dbURLFile - that reads del database URL (and password) from a file?

Something like services.nextcloud.config.adminpassFile?

Thanks! Gio'

gbiscuolo commented 4 years ago

This is a related topic I started on Discourse: In configuration.nix can I read a value from a file?

aanderse commented 4 years ago

Seems doable. Could create a set of database options, much like some other services have and then use jq to patch in the database.passwordFile in the systemd preStart script.

aanderse commented 4 years ago

@gbiscuolo do you have any interest+time+ability to work on this?

gbiscuolo commented 4 years ago

Hello Aaron,

thank you for your interest in this issue

Aaron Andersen notifications@github.com writes:

@gbiscuolo do you have any interest+time+ability to work on this?

I surely have interest but right now I still miss some ability and needed time to work on this (means also acquire new capabilities).

Maybe I'll try in a feew weeks but please do not count on me for this, sorry

Thanks! Gio'

[...]

-- Giovanni Biscuolo

Xelera IT Infrastructures

aanderse commented 4 years ago

Understood. Thank you for reporting the issue. Leave it to me. :+1:

stale[bot] commented 4 years ago

Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse. 3. Ask on the #nixos channel on irc.freenode.net.
aanderse commented 4 years ago

Sorry, I haven't got around to this. Still relevant I believe.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info