OpenShift Security Operations: Difference between revisions
Jump to navigation
Jump to search
Line 35: | Line 35: | ||
='Secret' Operations= | ='Secret' Operations= | ||
List all secrets: | List all [[OpenShift_Security_Concepts#Secret|secrets]]: | ||
oc get secrets | oc get secrets |
Revision as of 00:45, 13 October 2017
Internal
List All Cluster Role Bindings
oc get clusterrolebindings
List Role Bindings for a Specific Role
oc get clusterrolebindings/cluster-admins
Make a User a Cluster Administrator
This command can be used to make regular users cluster administrators:
oadm policy add-cluster-role-to-user cluster-admin ovidiu
Enable system:admin Remote Access
OAuth Client Operations
List all OAuth clients:
oc get oauthclients
List one:
oc get oauthclient kibana-proxy
oc edit oauthclient kibana-proxy
'Secret' Operations
List all secrets:
oc get secrets
Extract data from a given secret:
cd ~/tmp oc extract secret/logging-kibana-proxy [--keys=oauth-secret] --confirm