This repository was archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add customPlugins and unsupportedBuiltInPlugins sections to spire-ser…
…ver (#198) This patch enables end users to configure external plugins in the spire-server config. Unsupported internal plugins are not able to be set. --------- Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> Signed-off-by: kfox1111 <Kevin.Fox@pnnl.gov> Co-authored-by: Edwin Buck <edwbuck@gmail.com> Co-authored-by: Faisal Memon <fymemon@yahoo.com>
- Loading branch information
1 parent
f4ee2c2
commit 51cba5b
Showing
10 changed files
with
210 additions
and
39 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
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 |
---|---|---|
@@ -1 +1,8 @@ | ||
Installed {{ .Chart.Name }}… | ||
{{- $up := (index .Values "spire-server").unsupportedBuiltInPlugins }} | ||
{{- $s := add (len $up.keyManager) (len $up.nodeAttestor) (len $up.upstreamAuthority) (len $up.notifier) }} | ||
{{- if gt $s 0 }} | ||
|
||
Warning: | ||
You are using an unsupported plugin. Functionality of this release and future upgrades are not guaranteed to work smoothly. | ||
{{- end }} |
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,9 @@ | ||
FROM alpine | ||
RUN \ | ||
cd /tmp && \ | ||
wget -O plugin.tar.gz https://github.com/boxboat/spire-tpm-plugin/releases/download/v1.3.3/spire_tpm_plugin_tpm_attestor_agent_linux_amd64_v1.3.3.tar.gz && \ | ||
tar -zxvf plugin.tar.gz && \ | ||
mv tpm_attestor_agent / | ||
|
||
FROM ghcr.io/spiffe/spire-server:1.5.4 | ||
COPY --from=0 /tpm_attestor_agent /bin/tpm_attestor_agent |
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,9 @@ | ||
FROM alpine | ||
RUN \ | ||
cd /tmp && \ | ||
wget -O plugin.tar.gz https://github.com/boxboat/spire-tpm-plugin/releases/download/v1.3.3/spire_tpm_plugin_tpm_attestor_server_linux_amd64_v1.3.3.tar.gz && \ | ||
tar -zxvf plugin.tar.gz && \ | ||
mv tpm_attestor_server / | ||
|
||
FROM ghcr.io/spiffe/spire-server:1.5.4 | ||
COPY --from=0 /tpm_attestor_server /bin/tpm_attestor_server |
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,25 @@ | ||
spire-server: | ||
initContainers: | ||
- name: tpm-init | ||
image: busybox | ||
command: | ||
- sh | ||
- -c | ||
- | | ||
mkdir -p /run/spire/data/certs | ||
mkdir -p /run/spire/data/hashes | ||
volumeMounts: | ||
- mountPath: /run/spire/data | ||
name: spire-data | ||
image: | ||
registry: docker.io | ||
repository: kfox1111/misc | ||
version: tpm-server-test | ||
customPlugins: | ||
nodeAttestor: | ||
tpm: | ||
plugin_cmd: /bin/tpm_attestor_server | ||
plugin_checksum: 97442358ae946e3fb8f2464432b8c23efdc0b5d44ec1eea27babe59ef646cc2f | ||
plugin_data: | ||
- ca_path: /run/spire/data/certs | ||
hash_path: /run/spire/data/hashes |
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