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

Use correct VM name for mimetype handling #707

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented Jun 9, 2021

Status

Ready for review

Description of Changes

Intended to address #705.

We've observed inconsistent symlinking based on "grains.id", which resolve to the VM hostname in all cases. Let's instead call out to qubesdb-read /name, which sidesteps all Salt machinery, and polls for the VM name via the configuration API.

Testing

  1. Set up a prod install, fully updated
  2. Make sure you can reproduce a failing DispVM setup, as described in DispVM functionality is broken #705. For example, run ln -sf /opt/sdw/mimeapps.list.sd-default ~/.local/share/applications/mimeapps.list inside sd-viewer to break it. You should confirm inside SecureDrop Client that DispVMs fail to open submissions.
  3. Run make clone to fetch these changes into dom0
  4. Manually install the freshly fetched rpm package with sudo dnf reinstall <rpm>
  5. Run sdw-admin --apply to do a full state run.
  6. Re-test the DispVM setup. Is it fixed?

We've observed inconsistent symlinking based on "grains.id", which
resolve to the VM hostname in all cases. Let's instead call out to
`qubesdb-read /name`, which sidesteps all Salt machinery, and polls for
the VM name via the configuration API.
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.

this fixes the DispVM issue (just needed to reboot sd-viewer after doing a full state run)

@sssoleileraaa sssoleileraaa merged commit 3096862 into main Jun 9, 2021
@sssoleileraaa sssoleileraaa deleted the 705-get-correct-vm-name branch June 9, 2021 02:58
conorsch pushed a commit that referenced this pull request Jun 9, 2021
Follow up to #707. Make sure we're using vm_name everywhere.
@conorsch conorsch mentioned this pull request Jun 9, 2021
conorsch pushed a commit to freedomofpress/securedrop-yum-prod that referenced this pull request Jun 9, 2021
Includes changes from:

  * freedomofpress/securedrop-workstation#707
  * freedomofpress/securedrop-workstation#708

Signed with the old/current key, i.e.
22245C81E3BAEB4138B36061310F561200F4AD77
conorsch pushed a commit to freedomofpress/securedrop-yum-prod that referenced this pull request Jun 9, 2021
Includes changes from:

  * freedomofpress/securedrop-workstation#707
  * freedomofpress/securedrop-workstation#708

Signed with the old/current key, i.e.
22245C81E3BAEB4138B36061310F561200F4AD77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants