Document how to clean 2f auth tokens
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
5c756354b2
commit
8be806683e
1 changed files with 27 additions and 0 deletions
27
clean_2f_tokens.md
Normal file
27
clean_2f_tokens.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# How to remove 2 factors authentication tokens?
|
||||||
|
|
||||||
|
* become root on os-master01 and/or os-master01.stg
|
||||||
|
|
||||||
|
* Run the following commands:
|
||||||
|
|
||||||
|
```
|
||||||
|
oc project fas
|
||||||
|
oc get pods
|
||||||
|
```
|
||||||
|
|
||||||
|
* Look for the totpcgi-N-hash pods
|
||||||
|
|
||||||
|
* Log into that pod:
|
||||||
|
|
||||||
|
```
|
||||||
|
oc rsh <one of the pods above>
|
||||||
|
```
|
||||||
|
|
||||||
|
* Clean the tokens:
|
||||||
|
|
||||||
|
```
|
||||||
|
totpprov delete-user <fas username>
|
||||||
|
```
|
||||||
|
|
||||||
|
* say yes, exit, and repeat for stg/prod as each has their own db.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue