Skip to content

Commit 2c979b8

Browse files
author
Mladen Rusev
committed
change to CertificatePolicy in application-team-1.yaml
1 parent 18a5aa1 commit 2c979b8

File tree

1 file changed

+19
-79
lines changed

1 file changed

+19
-79
lines changed

hack/e2e/application-team-1.yaml

Lines changed: 19 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,33 @@
1-
apiVersion: v1
2-
kind: Namespace
3-
metadata:
4-
name: team-1
5-
---
61
apiVersion: policy.cert-manager.io/v1alpha1
7-
kind: CertificateRequestPolicy
2+
kind: CertificatePolicy
83
metadata:
9-
name: team-1
4+
name: allow-team-1-certs
5+
namespace: venafi
106
spec:
117
allowed:
12-
commonName:
13-
value: '*'
14-
dnsNames:
15-
values:
16-
- '*'
17-
subject:
18-
countries:
19-
values:
20-
- '*'
21-
localities:
22-
values:
23-
- '*'
24-
organizationalUnits:
25-
values:
26-
- '*'
27-
organizations:
28-
values:
29-
- '*'
30-
postalCodes:
31-
values:
32-
- '*'
33-
provinces:
34-
values:
35-
- '*'
36-
serialNumber:
37-
value: '*'
38-
streetAddresses:
39-
values:
40-
- '*'
8+
commonNames: ["*"]
9+
dnsNames: ["*"]
4110
usages:
42-
- digital signature
43-
- key encipherment
44-
- server auth
45-
- client auth
46-
plugins:
47-
venafi:
48-
values:
49-
venafiConnectionName: venafi-components
50-
zone: ${VEN_ZONE}
51-
selector:
52-
issuerRef:
53-
group: jetstack.io
54-
kind: VenafiIssuer
55-
name: venafi-cloud
56-
namespace:
57-
matchNames:
58-
- team-1
11+
- "digital signature"
12+
- "key encipherment"
13+
- "server auth"
14+
issuerSelector:
15+
matchNames: ["venafi-cloud"]
16+
namespaceSelector:
17+
matchNames: ["team-1"]
18+
19+
---
20+
apiVersion: v1
21+
kind: Namespace
22+
metadata:
23+
name: team-1
5924
---
6025
apiVersion: jetstack.io/v1alpha1
6126
kind: VenafiIssuer
6227
metadata:
6328
name: venafi-cloud
6429
namespace: team-1
6530
spec:
66-
certificateNameExpression: request.namespace + "_" + request.name
6731
venafiConnectionName: venafi-components
6832
venafiConnectionNamespace: venafi
6933
zone: ${VEN_ZONE}
@@ -86,28 +50,4 @@ spec:
8650
rotationPolicy: Always
8751
size: 2048
8852
revisionHistoryLimit: 1
89-
secretName: app-0
90-
---
91-
apiVersion: rbac.authorization.k8s.io/v1
92-
kind: Role
93-
metadata:
94-
name: cert-manager-policy:allow
95-
namespace: team-1
96-
rules:
97-
- apiGroups: ["policy.cert-manager.io"]
98-
resources: ["certificaterequestpolicies"]
99-
verbs: ["use"]
100-
---
101-
apiVersion: rbac.authorization.k8s.io/v1
102-
kind: RoleBinding
103-
metadata:
104-
name: cert-manager-policy:allow
105-
namespace: team-1
106-
roleRef:
107-
apiGroup: rbac.authorization.k8s.io
108-
kind: Role
109-
name: cert-manager-policy:allow
110-
subjects:
111-
- kind: Group
112-
name: system:authenticated
113-
apiGroup: rbac.authorization.k8s.io
53+
secretName: app-0

0 commit comments

Comments
 (0)