Skip to content

Commit 02ee44c

Browse files
author
Roy Kaufman
committed
Update the method of deploying trustee for both GCP and bare-metal VM
Signed-off-by: Roy Kaufman <[email protected]>
1 parent a07c800 commit 02ee44c

29 files changed

+65
-288
lines changed

configs/trustee-gcp.bu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ storage:
3434
- path: /usr/local/bin/populate_kbs.sh
3535
mode: 0755
3636
contents:
37-
local: populate_kbs.sh
37+
local: populate_kbs_gcp.sh
38+
- path: /usr/local/bin/kbs-client
39+
mode: 0755
40+
contents:
41+
local: kbs-client
3842
- path: /etc/containers/systemd/key-generation.container
3943
mode: 0644
4044
contents:

configs/trustee.bu

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ passwd:
88

99
systemd:
1010
units:
11-
- name: zincati.service
12-
enabled: false
1311
1412
dropins:
1513
- name: autologin-core.conf
@@ -21,16 +19,53 @@ systemd:
2119
ExecStart=-/usr/sbin/agetty --autologin core --noclear %I $TERM
2220

2321
storage:
24-
trees:
25-
- local: "."
26-
path: "/"
2722
directories:
28-
- path: /var/srv/www
29-
overwrite: true
23+
- path: /var/kbs/config
24+
overwrite: true
25+
- path: /var/srv/www
26+
overwrite: true
3027
files:
3128
- path: /etc/profile.d/systemd-pager.sh
3229
mode: 0644
3330
contents:
3431
inline: |
3532
# Tell systemd to not use a pager when printing information
3633
export SYSTEMD_PAGER=cat
34+
- path: /usr/local/bin/populate_kbs.sh
35+
mode: 0755
36+
contents:
37+
local: populate_kbs.sh
38+
- path: /usr/local/bin/kbs-client
39+
mode: 0755
40+
contents:
41+
local: kbs-client
42+
- path: /etc/containers/systemd/key-generation.container
43+
mode: 0644
44+
contents:
45+
local: containers/key-generation.container
46+
- path: /var/kbs/config/kbs-config.toml
47+
mode: 0644
48+
contents:
49+
local: kbs-config.toml
50+
- path: /etc/containers/systemd/kbs.container
51+
mode: 0644
52+
contents:
53+
local: containers/kbs.container
54+
- path: /etc/containers/systemd/kbs-client.container
55+
mode: 0644
56+
contents:
57+
local: containers/kbc.container
58+
- path: /etc/containers/systemd/nginx.container
59+
mode: 0644
60+
contents:
61+
local: containers/nginx.container
62+
- path: /etc/containers/systemd/register-ak.container
63+
mode: 0644
64+
contents:
65+
local: containers/register-ak.container
66+
- path /opt/policy.rego
67+
mode: 0755
68+
contents:
69+
local: policy.rego
70+
71+

configs/trustee-gcp/containers/kbc.container renamed to configs/trustee/containers/kbc.container

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ After=key-generation.container
44

55
[Container]
66
ContainerName=kbs-client
7-
Image=quay.io/rkaufman/trustee-attester:TPM-additional-dev
7+
Image=quay.io/trusted-execution-clusters/trustee-attester:TPM-additional-dev
88
Network=host
99
Volume=user-keys:/opt/confidential-containers/kbs/user-keys
1010
Exec=tail -f /dev/null

configs/trustee-gcp/containers/kbs.container renamed to configs/trustee/containers/kbs.container

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ After=key-generation.container
44

55
[Container]
66
ContainerName=kbs
7-
Image=quay.io/rkaufman/trustee-attester:TPM-additional-dev
7+
Image=quay.io/trusted-execution-clusters/key-broker-service:fix-TPM-report-data-size
88
Network=host
99
Entrypoint=/usr/local/bin/kbs
1010
PublishPort=8080:8080

configs/trustee/etc/containers/systemd/as-grpc.container

Lines changed: 0 additions & 20 deletions
This file was deleted.

configs/trustee/etc/containers/systemd/kbc.container

Lines changed: 0 additions & 13 deletions
This file was deleted.

configs/trustee/etc/containers/systemd/kbs.container

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)