-
Notifications
You must be signed in to change notification settings - Fork 47
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
Always set a VM's internalness #1219
Conversation
I don't have my normal SDW testing machine with me so I haven't been able to test this at all. |
473526e
to
cdf26ef
Compare
To ensure we correctly flip the status of a VM's internal feature or not, ensure the property is always being set, but conditional the value on the environment. And then explicitly set sd-app and sd-gpg as non-internal, so that salt will update them from when they used to be internal (see e754b40). Refs #1214
cdf26ef
to
8e3232e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Visually looks good to me. I'll setup a fresh install tomorrow (was going to do it anyways) and follow the test plan if nobody gets there first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected. Good to merge.
With freedomofpress#1219 sd-app and sd-proxy were explicitly as "internal: 0". However, this does not work, as the developer docs warn [1]: > Some extensions interpret the values as boolean. In this case, > the empty string means False and non-empty string (commonly '1') > means True. To fix this, the internalness of a qube is explicitly set to "". [1]: https://dev.qubes-os.org/projects/core-admin-client/en/latest/manpages/qvm-features.html#description
Status
Ready for review
Description of Changes
To ensure we correctly flip the status of a VM's internal feature or not, ensure the property is always being set, but conditional the value on the environment.
And then explicitly set sd-app and sd-gpg as non-internal, so that salt will update them from when they used to be internal (see e754b40).
Refs #1214
Testing
Deployment
Any special considerations for deployment? This is to implement handling for upgrades.
Checklist
make test
) pass indom0