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
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ spec:
elements:
- nameNormalized: stone-prd-rh01
values.clusterDir: stone-prd-rh01
- nameNormalized: kflux-rhel-p01
values.clusterDir: kflux-rhel-p01
template:
metadata:
name: cluster-secret-store-rh-{{nameNormalized}}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
- trusted-ca-configmap.yaml
- rhel-secret-store.yaml
- rhel-appsre-vault-approle.yaml
commonAnnotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: rhel-appsre-vault-approle
annotations:
argocd.argoproj.io/sync-wave: "-1"
spec:
dataFrom:
- extract:
key: production/infrastructure/cluster-secret-store/rhel-appsre-vault-approle
refreshInterval: 5m
secretStoreRef:
kind: ClusterSecretStore
name: appsre-stonesoup-vault
target:
creationPolicy: Owner
deletionPolicy: Delete
name: rhel-appsre-vault-approle
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ClusterSecretStore
metadata:
name: rhel-appsre-vault
spec:
provider:
vault:
# This store is only deployed to internal cluster, so we use the internal vault server instead of the external one
server: "https://vault.corp.redhat.com:8200/"
path: apps
version: v2
# Reference to the Red Hat internal CA certificates
caProvider:
type: ConfigMap
name: trusted-ca
namespace: appsre-vault
key: ca-bundle.crt
auth:
appRole:
path: approle
roleId: osci
secretRef:
name: rhel-appsre-vault-approle
key: secret-id
namespace: appsre-vault
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: trusted-ca
namespace: appsre-vault
annotations:
argocd.argoproj.io/sync-wave: "-1"
labels:
config.openshift.io/inject-trusted-cabundle: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
namespace: appsre-vault
conditions:
- namespaces:
- appsre-vault
- dora-metrics
- dynatrace
- application-service
Expand Down
Loading