-
Notifications
You must be signed in to change notification settings - Fork 46
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
[Refactor] Move all Salt provisioning files into /srv/salt/securedrop_salt #1048
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d75e470
Rename dom0 directory to securedrop_salt
rocodes 3662e51
Move all provisioning-related files salt files into securedrop_salt d…
rocodes 2a9265a
Update provisioning scripts to refer to /srv/salt/securedrop_salt.
rocodes 031604d
Enable only our top file
rocodes 85bcd63
Update dom0 repo test with new pubkey location.
rocodes 68feb49
Remove deprecated /srv/salt path from clean-salt and update cleanup o…
rocodes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
include dom0/*.sls | ||
include dom0/*.top | ||
include dom0/*.j2 | ||
include dom0/*.yml | ||
include dom0/*.conf | ||
include dom0/remove-tags.py | ||
include dom0/securedrop-handle-upgrade | ||
include securedrop_salt/* | ||
include README.md | ||
include LICENSE | ||
include VERSION | ||
include sd-proxy/* | ||
include sd-whonix/* | ||
include sd-workstation/* | ||
include sdw_updater/*.py | ||
include sdw_notify/*.py | ||
include sdw_util/*.py | ||
include usb-autoattach/* | ||
include files/* | ||
include setup.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,28 +61,15 @@ configuration over time. | |
# direct_url.json is is not reproducible and not strictly needed | ||
rm %{buildroot}/%{python3_sitelib}/*%{version}.dist-info/direct_url.json | ||
sed -i "/\.dist-info\/direct_url\.json,/d" %{buildroot}/%{python3_sitelib}/*%{version}.dist-info/RECORD | ||
install -m 755 -d %{buildroot}/srv/salt/sd/sd-proxy | ||
install -m 755 -d %{buildroot}/srv/salt/sd/sd-journalist | ||
install -m 755 -d %{buildroot}/srv/salt/sd/sd-whonix | ||
install -m 755 -d %{buildroot}/srv/salt/sd/sd-workstation | ||
install -m 755 -d %{buildroot}/srv/salt/sd/usb-autoattach | ||
|
||
install -m 755 -d %{buildroot}/srv/salt/ | ||
cp -a securedrop_salt %{buildroot}/srv/salt/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as in manifest, should be excluding apt-test config. |
||
|
||
install -m 755 -d %{buildroot}/%{_datadir}/%{name}/scripts | ||
install -m 755 -d %{buildroot}/%{_bindir} | ||
install -m 755 -d %{buildroot}/opt/securedrop | ||
install -m 755 -d %{buildroot}/usr/bin/securedrop | ||
install -m 644 dom0/*.sls %{buildroot}/srv/salt/ | ||
install -m 644 dom0/*.top %{buildroot}/srv/salt/ | ||
install -m 644 dom0/*.j2 %{buildroot}/srv/salt/ | ||
install -m 644 dom0/*.yml %{buildroot}/srv/salt/ | ||
install -m 644 dom0/*.conf %{buildroot}/srv/salt/ | ||
install -m 755 dom0/remove-tags.py %{buildroot}/srv/salt/remove-tags | ||
install -m 755 dom0/securedrop-handle-upgrade %{buildroot}/srv/salt/ | ||
install -m 755 files/update-xfce-settings %{buildroot}/usr/bin/securedrop/ | ||
install -m 644 sd-proxy/* %{buildroot}/srv/salt/sd/sd-proxy/ | ||
install -m 644 sd-whonix/* %{buildroot}/srv/salt/sd/sd-whonix/ | ||
install -m 644 sd-workstation/* %{buildroot}/srv/salt/sd/sd-workstation/ | ||
install -m 755 usb-autoattach/sd-attach-export-device %{buildroot}/srv/salt/sd/usb-autoattach/ | ||
install -m 644 usb-autoattach/99-sd-devices.rules %{buildroot}/srv/salt/sd/usb-autoattach/ | ||
install -m 755 files/clean-salt %{buildroot}/%{_datadir}/%{name}/scripts/ | ||
install -m 755 files/destroy-vm.py %{buildroot}/%{_datadir}/%{name}/scripts/destroy-vm | ||
install -m 755 files/provision-all %{buildroot}/%{_datadir}/%{name}/scripts/ | ||
|
@@ -98,7 +85,7 @@ install -m 755 -d %{buildroot}/%{_sharedstatedir}/%{name}/ | |
install -m 755 -d %{buildroot}/%{_userunitdir}/ | ||
install -m 755 -d %{buildroot}/%{_unitdir} | ||
install -m 644 files/press.freedom.SecureDropUpdater.desktop %{buildroot}/%{_datadir}/applications/ | ||
install -m 644 files/press.freedom.SecureDropUpdater.desktop %{buildroot}/srv/salt/press.freedom.SecureDropUpdater.desktop | ||
install -m 644 files/press.freedom.SecureDropUpdater.desktop %{buildroot}/srv/salt/securedrop_salt/press.freedom.SecureDropUpdater.desktop | ||
install -m 644 files/securedrop-128x128.png %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps/securedrop.png | ||
install -m 644 files/securedrop-scalable.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/securedrop.svg | ||
install -m 755 files/sdw-updater.py %{buildroot}/%{_bindir}/sdw-updater | ||
|
@@ -127,13 +114,7 @@ install -m 644 files/securedrop-user-xfce-icon-size.service %{buildroot}/%{_user | |
%attr(755, root, root) %{_datadir}/%{name}/scripts/validate_config.py | ||
%attr(755, root, root) %{_bindir}/sdw-admin | ||
%{_datadir}/%{name}/config.json.example | ||
/srv/salt/sd* | ||
/srv/salt/dom0-xfce-desktop-file.j2 | ||
/srv/salt/remove-tags | ||
/srv/salt/securedrop-* | ||
/srv/salt/fpf* | ||
/srv/salt/press.freedom.SecureDropUpdater.desktop | ||
|
||
/srv/salt/securedrop_salt/* | ||
%attr(755, root, root) %{_bindir}/sdw-login | ||
%attr(755, root, root) %{_bindir}/sdw-notify | ||
%attr(755, root, root) %{_bindir}/sdw-updater | ||
|
@@ -166,10 +147,7 @@ install -m 644 files/securedrop-user-xfce-icon-size.service %{buildroot}/%{_user | |
%license LICENSE | ||
|
||
%post | ||
find /srv/salt -maxdepth 1 -type f -iname '*.top' \ | ||
| xargs -n1 basename \ | ||
| sed -e 's/\.top$$//g' \ | ||
| xargs qubesctl top.enable > /dev/null | ||
qubesctl top.enable securedrop_salt.sd-workstation > /dev/null ||: | ||
|
||
# Force full run of all Salt states - uncomment in release branch | ||
# mkdir -p /tmp/sdw-migrations | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This includes the apt-test key and sources file. We probably should be excluding these and adding them in via the dev setup script when
make dev
ormake staging
is run instead. They shouldn't be shipped in the prod RPM.