Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added cert-manager and openssl plugins #2699

Merged
merged 1 commit into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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