-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add direct tpm support for spire-server (#211)
* Add direct tpm support Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Add agent support Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Add missing condition Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Add missing condition Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Remove agent bits from this pr Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Plugin needs to write to /tmp Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Fix tmp mount Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Make it possible to manage cas/hashes via values Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Apply suggestions from code review Co-authored-by: Faisal Memon <fymemon@yahoo.com> Signed-off-by: kfox1111 <Kevin.Fox@pnnl.gov> * Fix docs Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Incorperate feedback Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Update to the newest release Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Incorperate feedback Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> * Incorperate feedback Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> --------- Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov> Signed-off-by: kfox1111 <Kevin.Fox@pnnl.gov> Co-authored-by: Faisal Memon <fymemon@yahoo.com>
- Loading branch information
1 parent
c570174
commit fcd0c11
Showing
5 changed files
with
126 additions
and
2 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
24 changes: 24 additions & 0 deletions
24
charts/spire/charts/spire-server/templates/tpm-configmap.yaml
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,24 @@ | ||
{{- if ne (len .Values.nodeAttestor.tpmDirect.cas) 0 }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "spire-server.fullname" . }}-tpm-direct-ca | ||
namespace: {{ include "spire-server.namespace" . }} | ||
data: | ||
{{- range $key, $value := .Values.nodeAttestor.tpmDirect.cas }} | ||
{{ $key }}: | | ||
{{ $value | nindent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
--- | ||
{{- if ne (len .Values.nodeAttestor.tpmDirect.hashes) 0 }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "spire-server.fullname" . }}-tpm-direct-hash | ||
namespace: {{ include "spire-server.namespace" . }} | ||
data: | ||
{{- range .Values.nodeAttestor.tpmDirect.hashes }} | ||
{{ . }}: "" | ||
{{- end }} | ||
{{- 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