-
Notifications
You must be signed in to change notification settings - Fork 13
Use attested-tls-proxy rather than cvm-reverse-proxy on Buildernet #65
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
base: trunk/buildernet
Are you sure you want to change the base?
Changes from all commits
8755ec3
af87af1
0236678
b86c6c4
8ec1533
0cb2c2f
5c1cf78
381b5b2
c5c2280
8ef830b
25120e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| [Service] | ||
| ExecStart= | ||
| ExecStart=/usr/bin/attested-tls-proxy server \ | ||
| --listen-addr 0.0.0.0:7936 \ | ||
| --server-attestation-type azure-tdx \ | ||
| --allowed-remote-attestation-type none \ | ||
| --tls-private-key-path %S/persistent/attested-tls-proxy/key.pem \ | ||
| --tls-certificate-path %S/persistent/attested-tls-proxy/cert.pem \ | ||
| 127.0.0.1:14727 |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [Service] | ||
| ExecStart= | ||
| ExecStart=/usr/bin/attested-tls-proxy client \ | ||
| --listen-addr 127.0.0.1:7937 \ | ||
| --client-attestation-type dcap-tdx | ||
| --allowed-remote-attestation-type none \ | ||
| --tls-private-key-path %S/persistent/attested-tls-proxy/key.pem \ | ||
| --tls-certificate-path %S/persistent/attested-tls-proxy/cert.pem \ | ||
| ${BUILDERNET_BUILDERHUB_URL} \ | ||
| SupplementaryGroups= | ||
| ProtectSystem=strict | ||
| ProtectHome=yes | ||
| AmbientCapabilities=CAP_DAC_OVERRIDE | ||
| ReadWritePaths=/sys/kernel/config/tsm/report |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [Service] | ||
| ExecStart= | ||
| ExecStart=/usr/bin/attested-tls-proxy-server \ | ||
| --listen-addr 0.0.0.0:7936 \ | ||
| --server-attestation-type dcap-tdx \ | ||
| --allowed-remote-attestation-type none \ | ||
| --tls-private-key-path %S/persistent/attested-tls-proxy/key.pem \ | ||
| --tls-certificate-path %S/persistent/attested-tls-proxy/cert.pem \ | ||
| 127.0.0.1:14727 | ||
| SupplementaryGroups= | ||
| ProtectSystem=strict | ||
| ProtectHome=yes | ||
| AmbientCapabilities=CAP_DAC_OVERRIDE | ||
| ReadWritePaths=/sys/kernel/config/tsm/report |
|
Member
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. For the first iteration, they could be running side be side (the previous reverse proxy and the new attested proxy server), right?
Contributor
Author
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. I was thinking the other way around - for the first iteration we just want to know whether this works, and having a fallback might make us think it works when it doesn't. Once we know it works, add cvm-reverse-proxy as a fallback in case it stops working. |
This file was deleted.
This file was deleted.
ameba23 marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| EXPECTED_SHA256="815d6734ac2f78ea7e9e12b02efa8f9b0b3b283e07f898ebf90ede6910eb1843" | ||
| curl -sSfL https://github.com/flashbots/attested-tls-proxy/releases/download/vtest00/attested-tls-proxy_1.vtest00_amd64.deb -o $PACKAGEDIR/attested-tls-proxy.deb | ||
| echo "${EXPECTED_SHA256}" $PACKAGEDIR/attested-tls-proxy.deb | sha256sum --check |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ Packages=cryptsetup | |
| curl | ||
| haproxy | ||
| jq | ||
| libtss2-dev | ||
| openssh-server | ||
| prometheus-node-exporter | ||
| rclone | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| [Unit] | ||
| Description=Attested TLS Proxy server | ||
| Wants=network-online.target | ||
| After=network.target network-online.target acme-le.service | ||
|
|
||
| [Service] | ||
| Type=exec | ||
| DynamicUser=yes | ||
| SupplementaryGroups=tss | ||
| ExecStart=/usr/bin/attested-tls-proxy server \ | ||
| --listen-addr 0.0.0.0:7936 \ | ||
| --allowed-remote-attestation-type none \ | ||
| --server-attestation-type auto \ | ||
| --tls-private-key-path %S/persistent/attested-tls-proxy/key.pem \ | ||
| --tls-certificate-path %S/persistent/attested-tls-proxy/cert.pem \ | ||
| 127.0.0.1:14727 | ||
| Restart=on-failure | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target |
This file was deleted.
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.
The file should probably be renamed to
attested-tls-proxy-client.... Also the the main service file inbuildernetimageThere 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.
You mean the name of this file should match the service file it is overriding - in this case
attested-tls-proxy-client.service?