-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
caa: remove option to configure agent via userdata
The agent doesn't require dynamic configuration any more (userdata is untrusted input) we can reduce the surface and package a static configuration. In this change image auth support is always enabled. An empty auth file is provisioned by default to /run/peerpod/auth.json, it can be overwritten by userdata. Signed-off-by: Magnus Kulke <[email protected]>
- Loading branch information
Showing
11 changed files
with
18 additions
and
142 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
server_addr = "unix:///run/kata-containers/agent.sock" | ||
guest_components_procs = "none" | ||
image_registry_auth = "file:///etc/kata-oci/auth.json" |
3 changes: 3 additions & 0 deletions
3
src/cloud-api-adaptor/podvm/files/etc/kata-oci/empty-auth.json
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,3 @@ | ||
{ | ||
"auths": {} | ||
} |
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 |
---|---|---|
|
@@ -5,9 +5,9 @@ [email protected] process-user-data.service | |
|
||
[Service] | ||
ExecStartPre=mkdir -p /run/kata-containers | ||
ExecStart=/usr/local/bin/kata-agent --config /run/peerpod/agent-config.toml | ||
ExecStart=/usr/local/bin/kata-agent --config /etc/agent-config.toml | ||
ExecStartPre=-umount /sys/fs/cgroup/misc | ||
ExecStopPost=/usr/local/bin/kata-agent-clean --config /run/peerpod/agent-config.toml | ||
ExecStopPost=/usr/local/bin/kata-agent-clean --config /etc/agent-config.toml | ||
SyslogIdentifier=kata-agent | ||
|
||
[Install] | ||
|
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,2 @@ | ||
#Type Path Mode User Group Age Argument | ||
C /run/peerpod/auth.json - - - - /etc/kata-oci/empty-auth.json |
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