forked from Scribe-public-demos/jenkins-pki-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.valint_pass.yaml
109 lines (95 loc) · 2.8 KB
/
.valint_pass.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
scribe:
auth:
login-url: https://scribe-hub-dev.us.auth0.com
grant-type: client_credentials
enable: true
audience: api.dev.scribesecurity.com
url: https://airflow.dev.scribesecurity.com
enable: true
attest:
cocosign:
policies:
- enable: true
name: marsh-policy
modules:
- enable: true
type: verify-artifact
name: superset-policy
input:
format: attest-cyclonedx-json
rego:
args:
superset:
username: SUPERSET_USERNAME
password: SUPERSET_PASSWORD
env: dev
licences:
max: 5
cve:
max: 70
unmaintained:
max: 2
images:
max: 2
# licences:
# max: 2
# cve:
# max: 466
# unmaintained:
# max: 34
# images:
# max: 2
# script: |
# package verify
# import data.superset.policy as policy
# default allow = false
# verify = v {
# v := {
# "allow": allow,
# "violation": violation,
# "errors": errors,
# "summary": summary,
# }
# }
# allow {
# policy.unmaintained.allow
# policy.cve.allow
# policy.images.allow
# policy.licences.allow
# }
# errors[msg] {
# msg := policy.unmaintained.errors[_]
# }
# errors[msg] {
# msg := policy.cve.errors[_]
# }
# errors[msg] {
# msg := policy.images.errors[_]
# }
# errors[msg] {
# msg := policy.licences.errors[_]
# }
# violation[msg] {
# msg := policy.unmaintained.violation[_]
# }
# violation[msg] {
# msg := policy.cve.violation[_]
# }
# violation[msg] {
# msg := policy.images.violation[_]
# }
# violation[msg] {
# msg := policy.licences.violation[_]
# }
# summary[msg] {
# msg := policy.unmaintained.summary[_]
# }
# summary[msg] {
# msg := policy.cve.summary[_]
# }
# summary[msg] {
# msg := policy.images.summary[_]
# }
# summary[msg] {
# msg := policy.licences.summary[_]
# }