-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TEP-0089] SPIRE for non-falsifiable provenance. Setup the test envir…
…onment. This PR is part of a set of PRs to enable non-falsifiable provenance using SPIRE. This PR sets up the environment needed to enable this feature in E2E tests. Note that the SPRIRE flag itself is not enabled, i.e. the feature itself is not enabled. This PR is to test if adding the SPIRE environment does not break anything in E2E tests. Signed-off-by: jagathprakash <31057312+jagathprakash@users.noreply.github.com>
- Loading branch information
1 parent
09d422c
commit 6844752
Showing
7 changed files
with
579 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"spec":{ | ||
"template":{ | ||
"spec":{ | ||
"$setElementOrder/containers":[ | ||
{ | ||
"name":"tekton-pipelines-controller" | ||
} | ||
], | ||
"$setElementOrder/volumes":[ | ||
{ | ||
"name":"config-logging" | ||
}, | ||
{ | ||
"name":"config-registry-cert" | ||
}, | ||
{ | ||
"name":"spiffe-workload-api" | ||
} | ||
], | ||
"containers":[ | ||
{ | ||
"$setElementOrder/volumeMounts":[ | ||
{ | ||
"mountPath":"/etc/config-logging" | ||
}, | ||
{ | ||
"mountPath":"/etc/config-registry-cert" | ||
}, | ||
{ | ||
"mountPath":"/spiffe-workload-api" | ||
} | ||
], | ||
"name":"tekton-pipelines-controller", | ||
"volumeMounts":[ | ||
{ | ||
"mountPath":"/spiffe-workload-api", | ||
"name":"spiffe-workload-api", | ||
"readOnly":true | ||
} | ||
] | ||
} | ||
], | ||
"volumes":[ | ||
{ | ||
"csi":{ | ||
"driver":"csi.spiffe.io", | ||
"readOnly":true | ||
}, | ||
"name":"spiffe-workload-api" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
|
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,17 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: config-spire | ||
namespace: tekton-pipelines | ||
labels: | ||
app.kubernetes.io/instance: default | ||
app.kubernetes.io/part-of: tekton-pipelines | ||
data: | ||
# spire-trust-domain specifies the SPIRE trust domain to use. | ||
spire-trust-domain: "example.org" | ||
# spire-socket-path specifies the SPIRE agent socket for SPIFFE workload API. | ||
spire-socket-path: "unix:///spiffe-workload-api/spire-agent.sock" | ||
# spire-server-addr specifies the SPIRE server address for workload/node registration. | ||
spire-server-addr: "spire-server.spire.svc.cluster.local:8081" | ||
# spire-node-alias-prefix specifies the SPIRE node alias prefix to use. | ||
spire-node-alias-prefix: "/tekton-node/" |
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,20 @@ | ||
apiVersion: storage.k8s.io/v1 | ||
kind: CSIDriver | ||
metadata: | ||
name: "csi.spiffe.io" | ||
spec: | ||
# Only ephemeral, inline volumes are supported. There is no need for a | ||
# controller to provision and attach volumes. | ||
attachRequired: false | ||
|
||
# Request the pod information which the CSI driver uses to verify that an | ||
# ephemeral mount was requested. | ||
podInfoOnMount: true | ||
|
||
# Don't change ownership on the contents of the mount since the Workload API | ||
# Unix Domain Socket is typically open to all (i.e. 0777). | ||
fsGroupPolicy: None | ||
|
||
# Declare support for ephemeral volumes only. | ||
volumeLifecycleModes: | ||
- Ephemeral |
Oops, something went wrong.