gchristensen changed the topic of #nixos-security to: Vulnerability Roundup Issues: https://github.com/NixOS/nixpkgs/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+Vulnerability+roundup + https://broken.sh
swapgs has quit [Ping timeout: 276 seconds]
swapgs has joined #nixos-security
swapgs has joined #nixos-security
swapgs has quit [Changing host]
ris has quit [Ping timeout: 268 seconds]
hmpffff has quit [Quit: nchrrrr…]
justanotheruser has joined #nixos-security
justanotheruser is now known as Guest9650
Guest9650 has quit [Quit: WeeChat 2.6]
justanotheruser has joined #nixos-security
justan0theruser has joined #nixos-security
justanotheruser has quit [Ping timeout: 268 seconds]
tilpner has quit [Quit: tilpner]
tilpner has joined #nixos-security
alexbakker has quit [*.net *.split]
spacekookie has quit [*.net *.split]
Foxboron has quit [*.net *.split]
Foxboron has joined #nixos-security
spacekookie has joined #nixos-security
alexbakker has joined #nixos-security
ckauhaus has joined #nixos-security
hmpffff has joined #nixos-security
hmpffff_ has joined #nixos-security
hmpffff has quit [Ping timeout: 276 seconds]
samueldr has quit [*.net *.split]
samueldr has joined #nixos-security
samueldr has quit [*.net *.split]
samueldr has joined #nixos-security
Bruno[m]1 has joined #nixos-security
<Bruno[m]1> I have a dumb question. Is it a security issue if a backup generates a file with world readable permissions? The user has to create the parent directory, which shouldn't be world readable but the user might forget to set it.
<ckauhaus> Bruno[m]1: Don't think so
<ckauhaus> managing permissions is generally up to the usre
<gchristensen> Bruno[m]1: can you describe more?
<Bruno[m]1> ckauhaus: thanks
<gchristensen> I disagree fwiw, so I'd like to know more about the context
<gchristensen> things should fail safe
<ckauhaus> heh
<Bruno[m]1> gchristensen: if I set `services.bitwarden_rs = /opt/bitwarden-backup`, /opt/bitwarden-backup will contain a backup of the sqlite database which is world readable. the password in that databse will be encrypted but there's still private keys in there (which are most likely protected with the users' passwords).
<Bruno[m]1> -rw-r--r-- 1 bitwarden_rs bitwarden_rs 139264 4 déc 13:30 db.sqlite3
<gchristensen> ah.
<gchristensen> in that case no, I would expect the user to take care since they explicitly specified where on disk
<Bruno[m]1> but wouldn't it be safer to use umask or something while creating the backup?
<Bruno[m]1> I don't think there would be a downside to it
<gchristensen> well we could, and amke an option to make the umask configurable
<Bruno[m]1> ok thanks.
<gchristensen> if the default configuration was insecure it would be a problem
<Bruno[m]1> what do you mean?
<Bruno[m]1> if the default umask would be wrong?
<gchristensen> na
<gchristensen> if it was defaulting to write to /opt/bitwarded-backup and that was world-readable, that is a bug
<gchristensen> imo
<gchristensen> but since it is a user-controlled location... less sure
ris has joined #nixos-security
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
<Bruno[m]1> gotcha. thanks
infinisil has joined #nixos-security
<gchristensen> ckauhaus: do you think that makes sense?
<ckauhaus> I do personally not like programs that mess around with permissions in user-controlled locations
<ckauhaus> but this is a matter of habit and personal taste of course
<gchristensen> +1
justan0theruser has quit [Ping timeout: 276 seconds]
justan0theruser has joined #nixos-security
justan0theruser has quit [Ping timeout: 265 seconds]
<Bruno[m]1> ssh-keygen will generate a (chmod 600) private key even if the .ssh directory already has the right permissions.
<Bruno[m]1> but those guys don't mess around
<Bruno[m]1> personnaly I would expect a "backup system" to be extra careful about security. just my personal taste too.
<Bruno[m]1> the "backup system" being only a shell script in this case.
justan0theruser has joined #nixos-security
hmpffff_ has quit [Quit: Bye…]
swapgs has quit [Ping timeout: 246 seconds]
swapgs has joined #nixos-security
swapgs has quit [Changing host]
swapgs has joined #nixos-security