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

Consider phasing out config.json #1224

Open
eloquence opened this issue Mar 16, 2021 · 1 comment
Open

Consider phasing out config.json #1224

eloquence opened this issue Mar 16, 2021 · 1 comment

Comments

@eloquence
Copy link
Member

eloquence commented Mar 16, 2021

The config.json file in .securedrop_client currently only holds the submission key fingerprint, which already exists in dom0. To simplify our provisioning logic (and particularly to make it largely cost-free to wipe .securedrop_client), it may be desirable to phase out use of this file.

At least for this particular use, one way to derive the fingerprint may be to ask sd-gpg to do it for us. The submission key exists on disk in sd-gpg as ~/.gnupg/sd-journalist.sec, so we can ask it to fingerprint it (these days, the way to do that is a mouthful: gpg --import --import-options show-only --with-fingerprint [filename] -- perhaps throw in a --with-colons for machine-friendly output).

@sssoleileraaa
Copy link
Contributor

I agree this would be optimal. It's also hard to remember the two different property names for fingerprint between dom0 and sd-app.

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

No branches or pull requests

2 participants