Skip to content

About

💉 k8s webhook that allows converts pem certificates from a configmap into a java truststore and injects it to the same confimap

Topics

Resources

Stars

8 stars

Watchers

2 watching

Forks

Latest commit

 

History

495 Commits

Folders and files

Repository files navigation

Github Build GitHub Release

Java Truststore Injection Webhook

This webhook injects a java truststore into a k8s ConfigMap containing pem certificates. If a ConfigMap is labelled to be injected with a java truststore, the webhook checks all existing data entries for pem certificates and adds all found fount to a java truststore file that is added as binary data.

Usage

Label a configmap where a java truststore should be injected.

kind: ConfigMap
apiVersion: v1
metadata:
  labels:
    jti.bakito.ch/inject-truststore: 'true'

truststore file name

The default truststore file name is 'cacerts'

A different ConfigMap file name can be defined by adding the following label.

kind: ConfigMap
apiVersion: v1
metadata:
  labels:
    jti.bakito.ch/truststore-name: 'custom-truststore-name'

truststore password

The default truststore password is 'changeit'

A different ConfigMap file name can be defined by adding the following annotation.

kind: ConfigMap
apiVersion: v1
metadata:
  annotations:
    jti.bakito.ch/truststore-password": 'custom-password'

Installation

java-truststore-injection-webhook can be installed via our Helm chart:

helm repo add bakito https://bakito.github.io/helm-charts
helm repo update

helm upgrade --install java-truststore-injection-webhook bakito/java-truststore-injection-webhook

About

💉 k8s webhook that allows converts pem certificates from a configmap into a java truststore and injects it to the same confimap

Topics

Resources

Stars

8 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages