Skip to content

Prototype implementation of mutating webhook injecting initContainer generating ephemeral Keystone application credentials to be used by main containers of Pods

Notifications You must be signed in to change notification settings

stanislav-zaprudskiy/os-auth-injector

Repository files navigation

os-auth-injector

Prototype implementation of mutating webhook injecting initContainer generating ephemeral Keystone application credentials to be used by main containers of Pods.

How to

Deploy the app normally first. Then re-deploy with the following diff:

--- a/examples/demo-app/helm-charts/demo-app/templates/deployment.yaml
+++ b/examples/demo-app/helm-charts/demo-app/templates/deployment.yaml
@@ -14,11 +14,13 @@ spec:
     metadata:
       labels:
         name: demo-app
-      annotations: {}
+      annotations:
+        auth.openstack.org/inject-from-secret: os-auth
+        # auth.openstack.org/duration: 24h
     spec:
       containers:
       - name: app
         image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
-        envFrom:
-        - secretRef:
-            name: os-auth
+        # envFrom:
+        # - secretRef:
+        #     name: os-auth

The change will cause the authenticator container to be injected, along with other related configuration.

About

Prototype implementation of mutating webhook injecting initContainer generating ephemeral Keystone application credentials to be used by main containers of Pods

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published