-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setting envar export as default and adding quotes; updating secret pu…
…t command with interactive inputs; adding sample operatory deploy yaml and sample vault yaml to public site; updating readme files
- Loading branch information
Showing
9 changed files
with
351 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
|
||
jobs: | ||
|
||
slv: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setting SLV Version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.14.0 | ||
name: slvs.slv.savesecrets.org | ||
spec: | ||
group: slv.savesecrets.org | ||
names: | ||
kind: SLV | ||
listKind: SLVList | ||
plural: slvs | ||
singular: slv | ||
scope: Namespaced | ||
versions: | ||
- name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
description: SLV is the Schema for the slvs API | ||
properties: | ||
apiVersion: | ||
description: |- | ||
APIVersion defines the versioned schema of this representation of an object. | ||
Servers should convert recognized schemas to the latest internal value, and | ||
may reject unrecognized values. | ||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | ||
type: string | ||
kind: | ||
description: |- | ||
Kind is a string value representing the REST resource this object represents. | ||
Servers may infer this from the endpoint the client submits requests to. | ||
Cannot be updated. | ||
In CamelCase. | ||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: SLVSpec defines the desired state of SLV | ||
properties: | ||
slvConfig: | ||
properties: | ||
hashLength: | ||
format: int32 | ||
type: integer | ||
publicKey: | ||
type: string | ||
wrappedKeys: | ||
items: | ||
type: string | ||
type: array | ||
required: | ||
- publicKey | ||
- wrappedKeys | ||
type: object | ||
slvSecrets: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
required: | ||
- slvConfig | ||
- slvSecrets | ||
type: object | ||
status: | ||
description: SLVStatus defines the observed state of SLV | ||
properties: | ||
error: | ||
type: string | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: slv | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: slv-operator | ||
namespace: slv | ||
automountServiceAccountToken: true | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: slv-operator-clusterrole | ||
rules: | ||
|
||
- apiGroups: ["slv.savesecrets.org"] | ||
resources: ["slvs"] # plural of SLV CRD | ||
verbs: | ||
- "watch" | ||
- "get" | ||
- "list" | ||
|
||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: | ||
- "create" | ||
- "list" | ||
- "update" | ||
- "delete" # Delete the secret when corresponding SLV CR is deleted | ||
- "watch" # Watching secrets annotated by SLV being modified and reverse sync for reverting to original state. | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: slv-operator-rolebinding | ||
subjects: | ||
- kind: ServiceAccount | ||
name: slv-operator | ||
namespace: slv | ||
roleRef: | ||
kind: ClusterRole | ||
name: slv-operator-clusterrole | ||
apiGroup: rbac.authorization.k8s.io | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: slv-operator | ||
namespace: slv | ||
labels: | ||
app: slv-operator | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: slv-operator | ||
template: | ||
metadata: | ||
labels: | ||
app: slv-operator | ||
spec: | ||
serviceAccountName: slv-operator | ||
containers: | ||
- name: slv-operator | ||
image: ghcr.io/savesecrets/slv/operator:latest # Use a specific version tag corresponding to the version of SLV used with the CR | ||
resources: | ||
limits: | ||
cpu: "1" # 1 CPU should be fairly enough for SLV Controller | ||
memory: "1Gi" # 1Gi is the minimum memory requirement for SLV Controller | ||
env: | ||
- name: SLV_ENV_SECRET_BINDING | ||
value: "SLV_ESB_ENVSECRETBINDINGSTRINGGOESHERE" # Ensure the appropriate KMS role is attached to the K8s Service Account | ||
- name: SLV_ENV_SECRET_KEY | ||
valueFrom: # SLV Environment Secret Key taken from K8s secret | ||
secretKeyRef: | ||
name: slv # Name of K8 Secret | ||
key: secretkey # Key within K8 Secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: slv.savesecrets.org/v1 | ||
kind: SLV | ||
metadata: | ||
name: pets | ||
spec: | ||
slvSecrets: | ||
supercat: SLV_VSS_AFLGLVMLEEACIAIBKYAL7QS4URIE3VNM4BDC7U5ULCUFXI7VSUGYU623JRBOINO2FTPACXAATPB5MNWWE2E3ALMLGUOKBC6N2EXPPWWKPORH3U3QVTQEUDCXUUOISVUI5I5ESRNYTLHDTUFF57T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