Added cert-manager and openssl plugins. (#2699)

Signed-off-by: Martin Montes <martin11lrx@gmail.com>
mine
Martin Montes 2024-05-18 16:45:02 +02:00 committed by GitHub
parent 3ef5415d62
commit 2ff050b7f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 61 additions and 0 deletions

36
plugins/cert-manager.yaml Normal file
View File

@ -0,0 +1,36 @@
# Manage cert-manager Certificate resouces via cmctl.
# See: https://github.com/cert-manager/cmctl
plugins:
cert-status:
shortCut: Shift-S
confirm: false
description: Certificate status
scopes:
- certificates
command: bash
background: false
args:
- -c
- "cmctl status certificate --context $CONTEXT -n $NAMESPACE $NAME |& less"
cert-renew:
shortCut: Shift-R
confirm: false
description: Certificate renew
scopes:
- certificates
command: bash
background: false
args:
- -c
- "cmctl renew --context $CONTEXT -n $NAMESPACE $NAME |& less"
secret-inspect:
shortCut: Shift-I
confirm: false
description: Inspect secret
scopes:
- secrets
command: bash
background: false
args:
- -c
- "cmctl inspect secret --context $CONTEXT -n $NAMESPACE $NAME |& less"

25
plugins/openssl.yaml Normal file
View File

@ -0,0 +1,25 @@
# Inspect certificate chains with openssl.
# See: https://github.com/openssl/openssl.
plugins:
secret-openssl-ca:
shortCut: Ctrl-O
confirm: false
description: Openssl ca.crt
scopes:
- secrets
command: bash
background: false
args:
- -c
- kubectl get secret --context $CONTEXT -n $NAMESPACE $NAME -o jsonpath='{.data.ca\.crt}' | base64 -d | openssl storeutl -noout -text -certs /dev/stdin |& less
secret-openssl-tls:
shortCut: Shift-O
confirm: false
description: Openssl tls.crt
scopes:
- secrets
command: bash
background: false
args:
- -c
- kubectl get secret --context $CONTEXT -n $NAMESPACE $NAME -o jsonpath='{.data.tls\.crt}' | base64 -d | openssl storeutl -noout -text -certs /dev/stdin |& less