-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: install Qusal TCP Proxy on updatevm's origin
Document qusal.ConnectTCP in dev's Access Control as it defaults to deny and causes confusion to users why it doesn't work by default. This is an exception of the rule that a formula cannot document the RPC service of another formula to avoid duplication.
- Loading branch information
1 parent
c2fc4b5
commit eb3a8ab
Showing
7 changed files
with
81 additions
and
0 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
## SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]> | ||
## | ||
## SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
set -eu | ||
|
||
updatevm="$(qubes-prefs updatevm)" | ||
updatevm_class="$(qvm-prefs "${updatevm}" klass)" | ||
proxy_target="" | ||
case "${updatevm_class}" in | ||
StandaloneVM) proxy_target="${updatevm}";; | ||
AppVM) proxy_target="$(qvm-prefs "${updatevm}" template)";; | ||
DispVM) | ||
proxy_target="$(qvm-prefs "$(qvm-prefs "${updatevm}" template)" template)" | ||
;; | ||
esac | ||
if test -n "${proxy_target}"; then | ||
echo "${proxy_target}" | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{# | ||
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]> | ||
|
||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
#} | ||
|
||
"{{ slsdotpath }}-get-updatevm-origin": | ||
file.managed: | ||
- name: /usr/local/bin/qusal-report-updatevm-origin | ||
- source: salt://{{ slsdotpath }}/files/admin/bin/qusal-report-updatevm-origin | ||
- mode: "0755" | ||
- user: root | ||
- group: root | ||
- makedirs: True |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{# | ||
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]> | ||
|
||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
#} | ||
|
||
base: | ||
'dom0': | ||
- match: nodegroup | ||
- sys-net.show-updatevm-origin |