Skip to content

bakito/java-truststore-injection-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Report Card 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

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •