Clarify NIST baseline in exercise 5.
This commit is contained in:
@ -127,7 +127,7 @@ oc adm policy add-scc-to-user privileged -z default -n prd-acme-payments
|
||||
|
||||
#+begin_src tmux
|
||||
# Create the namespace for the exercise
|
||||
oc new-project acme-prd-experimental
|
||||
oc new-project prd-acme-experimental
|
||||
|
||||
# Retrive existing users htpasswd file
|
||||
oc get secret htpasswd -ojsonpath={.data.htpasswd} -n openshift-config | base64 --decode > ${HOME}/Downloads/users.htpasswd
|
||||
@ -146,6 +146,7 @@ htpasswd -bB ${HOME}/Downloads/users.htpasswd alienated-proud-snail admin
|
||||
|
||||
# Replace the secret
|
||||
oc create secret generic htpasswd --from-file=htpasswd=${HOME}/Downloads/users.htpasswd --dry-run=client --output yaml --namespace openshift-config | oc replace --filename -
|
||||
sleep 10
|
||||
|
||||
# Login as a specified user
|
||||
oc login --username alienated-proud-snail --password admin
|
||||
|
||||
Reference in New Issue
Block a user