File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -123,22 +123,22 @@ let
123
123
id = "credentials" ;
124
124
modules = [ ( { config , pkgs , ... } : {
125
125
# This is the guest vm config
126
- microvm . credentialFiles . SECRET_BOOTSRAP_KEY = "/etc/microvm-bootstrap.secret" ;
126
+ microvm . credentialFiles . SECRET_BOOTSTRAP_KEY = "/etc/microvm-bootstrap.secret" ;
127
127
microvm . testing . enableTest = builtins . elem config . microvm . hypervisor [
128
128
# Hypervisors that support systemd credentials
129
129
"qemu"
130
130
] ;
131
131
# TODO: need to somehow have the test harness check for the success or failure of this service.
132
132
systemd . services . test-secret-availability = {
133
133
serviceConfig = {
134
- ImportCredential = "SECRET_BOOTSRAP_KEY " ;
134
+ ImportCredential = "SECRET_BOOTSTRAP_KEY " ;
135
135
Restart = "no" ;
136
136
} ;
137
137
path = [ pkgs . gnugrep pkgs . coreutils ] ;
138
138
script = ''
139
- cat $CREDENTIALS_DIRECTORY/SECRET_BOOTSRAP_KEY | grep -q "i am super secret"
139
+ cat $CREDENTIALS_DIRECTORY/SECRET_BOOTSTRAP_KEY | grep -q "i am super secret"
140
140
if [ $? -ne 0 ]; then
141
- echo "Secret not found at $CREDENTIALS_DIRECTORY/SECRET_BOOTSRAP_KEY "
141
+ echo "Secret not found at $CREDENTIALS_DIRECTORY/SECRET_BOOTSTRAP_KEY "
142
142
exit 1
143
143
fi
144
144
'' ;
You can’t perform that action at this time.
0 commit comments