Skip to content

VC-39644 Collect info for the venafiConnection and more issuers #648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
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
63 changes: 63 additions & 0 deletions deploy/charts/venafi-kubernetes-agent/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,13 @@ data:
version: v1
group: route.openshift.io
resource: routes
- kind: "k8s-dynamic"
name: "k8s/venaficonnections"
config:
resource-type:
group: jetstack.io
version: v1alpha1
resource: venaficonnections
- kind: "k8s-dynamic"
name: "k8s/venaficlusterissuers"
config:
Expand All @@ -222,4 +229,60 @@ data:
group: firefly.venafi.com
version: v1
resource: issuers
- kind: "k8s-dynamic"
name: "k8s/stepissuers"
config:
resource-type:
group: certmanager.step.sm
version: v1beta1
resource: stepissuers
- kind: "k8s-dynamic"
name: "k8s/stepclusterissuers"
config:
resource-type:
group: certmanager.step.sm
version: v1beta1
resource: stepclusterissuers
- kind: "k8s-dynamic"
name: "k8s/originissuers"
config:
resource-type:
group: cert-manager.k8s.cloudflare.com
version: v1
resource: originissuers
- kind: "k8s-dynamic"
name: "k8s/clusteroriginissuers"
config:
resource-type:
group: cert-manager.k8s.cloudflare.com
version: v1
resource: clusteroriginissuers
- kind: "k8s-dynamic"
name: "k8s/freeipaissuers"
config:
resource-type:
group: certmanager.freeipa.org
version: v1beta1
resource: issuers
- kind: "k8s-dynamic"
name: "k8s/freeipaclusterissuers"
config:
resource-type:
group: certmanager.freeipa.org
version: v1beta1
resource: clusterissuers
- kind: "k8s-dynamic"
name: "k8s/ejbcaissuers"
config:
resource-type:
group: ejbca-issuer.keyfactor.com
version: v1alpha1
resource: issuers
- kind: "k8s-dynamic"
name: "k8s/ejbcaclusterissuers"
config:
resource-type:
group: ejbca-issuer.keyfactor.com
version: v1alpha1
resource: clusterissuers
{{- end }}
140 changes: 140 additions & 0 deletions deploy/charts/venafi-kubernetes-agent/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,33 @@ subjects:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-venafi-connection-reader
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
rules:
- apiGroups: ["jetstack.io"]
resources:
- venaficonnections
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-venafi-connection-reader
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
roleRef:
kind: ClusterRole
name: {{ include "venafi-kubernetes-agent.fullname" . }}-venafi-connection-reader
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: {{ include "venafi-kubernetes-agent.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-venafi-enhanced-reader
labels:
Expand Down Expand Up @@ -315,3 +342,116 @@ subjects:
- kind: ServiceAccount
name: {{ include "venafi-kubernetes-agent.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-step-reader
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
rules:
- apiGroups: ["certmanager.step.sm"]
resources:
- stepissuers
- stepclusterissuers
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-step-reader
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
roleRef:
kind: ClusterRole
name: {{ include "venafi-kubernetes-agent.fullname" . }}-step-reader
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: {{ include "venafi-kubernetes-agent.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-cloudflare-reader
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
rules:
- apiGroups: ["cert-manager.k8s.cloudflare.com"]
resources:
- originissuers
- clusteroriginissuers
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-cloudflare-reader
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
roleRef:
kind: ClusterRole
name: {{ include "venafi-kubernetes-agent.fullname" . }}-cloudflare-reader
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: {{ include "venafi-kubernetes-agent.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-freeipa-reader
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
rules:
- apiGroups: ["certmanager.freeipa.org"]
resources:
- issuers
- clusterissuers
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-freeipa-reader
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
roleRef:
kind: ClusterRole
name: {{ include "venafi-kubernetes-agent.fullname" . }}-freeipa-reader
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: {{ include "venafi-kubernetes-agent.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-keyfactor-reader
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
rules:
- apiGroups: ["ejbca-issuer.keyfactor.com"]
resources:
- issuers
- clusterissuers
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "venafi-kubernetes-agent.fullname" . }}-keyfactor-reader
labels:
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }}
roleRef:
kind: ClusterRole
name: {{ include "venafi-kubernetes-agent.fullname" . }}-keyfactor-reader
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: {{ include "venafi-kubernetes-agent.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}