Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions test/bats/tests/config/executor_cosign_akv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: config.ratify.dev/v2alpha1
kind: Executor
metadata:
name: ratify-ratify-gatekeeper-provider-executor-1
spec:
scopes:
- "registry:5000"
stores:
- type: registry-store
parameters:
plainHttp: true
allowCosignTag: true
credential:
provider: "static"
username: "test_user"
password: "test_pw"
verifiers:
- name: cosign
type: cosign
parameters:
ignoreTLog: true
trustPolicies:
- scopes:
- "registry:5000"
keys:
azurekeyvault:
vaultURL: "__VAULT_URI__"
clientID: "__CLIENT_ID__"
tenantID: "__TENANT_ID__"
keys:
- name: "__COSIGN_KEY_NAME__"
policyEnforcer:
type: "threshold-policy"
parameters:
policy:
threshold: 1
rules:
- verifierName: "cosign"
33 changes: 33 additions & 0 deletions test/bats/tests/config/executor_cosign_keyless.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: config.ratify.dev/v2alpha1
kind: Executor
metadata:
name: ratify-ratify-gatekeeper-provider-executor-1
spec:
scopes:
- "wabbitnetworks.azurecr.io"
stores:
- type: registry-store
parameters:
allowCosignTag: true
credential:
provider: "static"
verifiers:
- name: cosign
type: cosign
parameters:
trustPolicies:
- scopes:
- "wabbitnetworks.azurecr.io"
certificateIdentity: ""
certificateIdentityRegex: ".*"
certificateOIDCIssuer: ""
certificateOIDCIssuerRegex: ".*"
ignoreTLog: false
ignoreCTLog: false
Comment thread
fseldow marked this conversation as resolved.
policyEnforcer:
type: "threshold-policy"
parameters:
policy:
threshold: 1
rules:
- verifierName: "cosign"
Comment thread
fseldow marked this conversation as resolved.
40 changes: 40 additions & 0 deletions test/bats/tests/config/executor_cosign_legacy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: config.ratify.dev/v2alpha1
kind: Executor
metadata:
name: ratify-ratify-gatekeeper-provider-executor-1
spec:
scopes:
- "registry:5000"
stores:
- type: registry-store
parameters:
plainHttp: true
allowCosignTag: true
credential:
provider: "static"
username: "test_user"
password: "test_pw"
verifiers:
- name: notation
type: notation
parameters:
certificates:
- type: "ca"
inline: __NOTATION_CERT__
- name: cosign
type: cosign
parameters:
trustPolicies:
- scopes:
- "registry:5000"
keys:
inline:
keys: __COSIGN_KEY__
policyEnforcer:
type: "threshold-policy"
parameters:
policy:
threshold: 1
rules:
- verifierName: "notation"
- verifierName: "cosign"
33 changes: 33 additions & 0 deletions test/bats/tests/config/executor_cosign_legacy_keyless.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: config.ratify.dev/v2alpha1
kind: Executor
metadata:
name: ratify-ratify-gatekeeper-provider-executor-1
spec:
scopes:
- "wabbitnetworks.azurecr.io"
stores:
- type: registry-store
parameters:
allowCosignTag: true
credential:
provider: "static"
verifiers:
- name: cosign
type: cosign
parameters:
trustPolicies:
- scopes:
- "wabbitnetworks.azurecr.io"
certificateIdentity: ""
certificateIdentityRegex: ".*"
certificateOIDCIssuer: ""
certificateOIDCIssuerRegex: ".*"
ignoreTLog: false
ignoreCTLog: false
policyEnforcer:
type: "threshold-policy"
parameters:
policy:
threshold: 1
rules:
- verifierName: "cosign"
Comment thread
fseldow marked this conversation as resolved.
29 changes: 29 additions & 0 deletions test/bats/tests/config/executor_invalid_store.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: config.ratify.dev/v2alpha1
kind: Executor
metadata:
name: ratify-ratify-gatekeeper-provider-executor-1
spec:
scopes:
- "registry:5000"
stores:
- type: invalid-store-type
parameters:
plainHttp: true
credential:
provider: "static"
username: "test_user"
password: "test_pw"
verifiers:
- name: notation
type: notation
parameters:
certificates:
- type: "ca"
inline: __NOTATION_CERT__
policyEnforcer:
type: "threshold-policy"
parameters:
policy:
threshold: 1
rules:
- verifierName: "notation"
40 changes: 40 additions & 0 deletions test/bats/tests/config/executor_k8s_secret_auth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: config.ratify.dev/v2alpha1
kind: Executor
metadata:
name: ratify-ratify-gatekeeper-provider-executor-1
spec:
scopes:
- "registry:5000"
stores:
- type: registry-store
parameters:
plainHttp: true
allowCosignTag: true
credential:
provider: "static"
username: "test_user"
password: "test_pw"
Comment thread
fseldow marked this conversation as resolved.
verifiers:
- name: notation
type: notation
parameters:
certificates:
- type: "ca"
inline: __NOTATION_CERT__
- name: cosign
type: cosign
parameters:
trustPolicies:
- scopes:
- "registry:5000"
keys:
inline:
keys: "-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEvjrMZFyaBDsvg5e0C8JaHqw8ULuc\nn947ODVAMvfdqtjqK2eW77OGrsFLdkbG3BET9U4Dj37odn4kI5lC4Lj9Eg==\n-----END PUBLIC KEY-----\n"
policyEnforcer:
type: "threshold-policy"
parameters:
policy:
threshold: 1
rules:
- verifierName: "notation"
- verifierName: "cosign"
33 changes: 33 additions & 0 deletions test/bats/tests/config/executor_namespace_cosign.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: config.ratify.dev/v2alpha1
kind: Executor
metadata:
name: executor-cosign-default
spec:
scopes:
- "registry:5000/cosign"
stores:
- type: registry-store
parameters:
plainHttp: true
allowCosignTag: true
credential:
provider: "static"
username: "test_user"
password: "test_pw"
verifiers:
- name: cosign
type: cosign
parameters:
trustPolicies:
- scopes:
- "registry:5000/cosign"
keys:
inline:
keys: __COSIGN_KEY__
policyEnforcer:
type: "threshold-policy"
parameters:
policy:
threshold: 1
rules:
- verifierName: "cosign"
29 changes: 29 additions & 0 deletions test/bats/tests/config/executor_namespace_notation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: config.ratify.dev/v2alpha1
kind: Executor
metadata:
name: executor-notation-default
spec:
scopes:
- "registry:5000/notation"
stores:
- type: registry-store
parameters:
plainHttp: true
credential:
provider: "static"
username: "test_user"
password: "test_pw"
verifiers:
- name: notation
type: notation
parameters:
certificates:
- type: "ca"
inline: __NOTATION_CERT__
policyEnforcer:
type: "threshold-policy"
parameters:
policy:
threshold: 1
rules:
- verifierName: "notation"
33 changes: 33 additions & 0 deletions test/bats/tests/config/executor_no_notation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: config.ratify.dev/v2alpha1
kind: Executor
metadata:
name: ratify-ratify-gatekeeper-provider-executor-1
spec:
scopes:
- "registry:5000"
stores:
- type: registry-store
parameters:
plainHttp: true
allowCosignTag: true
credential:
provider: "static"
username: "test_user"
password: "test_pw"
Comment thread
fseldow marked this conversation as resolved.
verifiers:
- name: cosign
type: cosign
parameters:
trustPolicies:
- scopes:
- "registry:5000"
keys:
inline:
keys: "-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEvjrMZFyaBDsvg5e0C8JaHqw8ULuc\nn947ODVAMvfdqtjqK2eW77OGrsFLdkbG3BET9U4Dj37odn4kI5lC4Lj9Eg==\n-----END PUBLIC KEY-----\n"
policyEnforcer:
type: "threshold-policy"
parameters:
policy:
threshold: 1
rules:
- verifierName: "cosign"
32 changes: 32 additions & 0 deletions test/bats/tests/config/executor_no_verifiers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: config.ratify.dev/v2alpha1
kind: Executor
metadata:
name: ratify-ratify-gatekeeper-provider-executor-1
spec:
scopes:
- "registry:5000"
stores:
- type: registry-store
parameters:
plainHttp: true
allowCosignTag: true
credential:
provider: "static"
username: "test_user"
password: "test_pw"
verifiers:
- name: dummy
Comment thread
fseldow marked this conversation as resolved.
type: notation
parameters:
scopes:
Comment thread
fseldow marked this conversation as resolved.
- "does-not-match.example.com"
Comment thread
fseldow marked this conversation as resolved.
certificates:
- type: "ca"
inline: __NOTATION_CERT__
policyEnforcer:
type: "threshold-policy"
parameters:
policy:
threshold: 1
rules:
- verifierName: "dummy"
34 changes: 34 additions & 0 deletions test/bats/tests/config/executor_notation_akv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: config.ratify.dev/v2alpha1
kind: Executor
metadata:
name: ratify-ratify-gatekeeper-provider-executor-1
spec:
scopes:
- "registry:5000"
stores:
- type: registry-store
parameters:
plainHttp: true
credential:
provider: "static"
username: "test_user"
password: "test_pw"
verifiers:
- name: notation
type: notation
parameters:
certificates:
- type: "ca"
azurekeyvault:
vaultURL: "__VAULT_URI__"
clientID: "__CLIENT_ID__"
tenantID: "__TENANT_ID__"
certificates:
- name: "__NOTATION_CERT_NAME__"
policyEnforcer:
type: "threshold-policy"
parameters:
policy:
threshold: 1
rules:
- verifierName: "notation"
Loading