Skip to content

Commit

Permalink
Added cert-manager and openssl plugins.
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Montes <[email protected]>
  • Loading branch information
mmontes11 committed May 11, 2024
1 parent 3ef5415 commit 03a2c21
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
36 changes: 36 additions & 0 deletions plugins/cert-manager.yaml
Original file line number Diff line number Diff line change
@@ -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 changes: 25 additions & 0 deletions plugins/openssl.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 03a2c21

Please sign in to comment.