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

Uses tags for RPC grants denoting Client privileges #299

Merged
merged 2 commits into from
Jul 25, 2019

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented Jul 24, 2019

Updates the Qubes RPC policy definitions to use a tag sd-client rather than hardcoded VM name sd-svs, in order to accommodate dev envs on Qubes for working on the SecureDrop Client. Related issues:

Testing

  1. In dom0, run make clone && make clean && make all
  2. Confirm that make test passes without errors
  3. Run qvm-tags sd-dev add sd-client
  4. Proceed with review of Supports opening submissions in DispVMs from Qubes dev env securedrop-client#490 to confirm new tagging setup permits sd-dev to open Client submissions in DispVMs

Conor Schaefer added 2 commits July 24, 2019 10:43
We use a tag rather than a hardcoded AppVM name to support flexibility
configuration. In the main, this is useful to developers, so that the
`sd-dev` AppVM can be tagged with `sd-client`, and thereby make calls as
though it were `sd-svs`. The Salt logic does not create `sd-dev`, it's
up to the developer to configure that machine.

Includes corresponding config test updates to validate the RPC policy
changes. There are no functional changes to sd-svs grants, merely the
possibility that other VMs can be manually granted similar capability.

Includes docs, recommending that developers add the new `sd-client` tag
to the dev VM manually, if working on the Client code.
We're folding the mimetype handlers and profile settings into the
"securedrop-client" debian package, so removing the corresponding Salt
config tasks here. The pyqt dependencies are already include in the
securedrop-client control file, so we don't need to redeclare them here.

Updates config tests to validate file contents, still, but without
direct file comparison, since the files have been removed from this
repo.
Copy link
Contributor

@sssoleileraaa sssoleileraaa left a comment

Choose a reason for hiding this comment

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

works as advertised

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.

Change qubes-rpc policies to refer to the SVS VM by tag rather than name, to support development client VMs
2 participants