Here's a one-liner to view base64 encoded secrets in kubernetes. Make sure you have jq installed.
jq
Copy$ kubectl get -n $NAMESPACE secret/$SECRET_NAME -o json| jq '.data | map_values(@base64d)' { "database": "secret1", "endpoint": "secret2", "username": "secret3", "password": "secret4" }
$ kubectl get -n $NAMESPACE secret/$SECRET_NAME -o json| jq '.data | map_values(@base64d)' { "database": "secret1", "endpoint": "secret2", "username": "secret3", "password": "secret4" }