Document how to clean 2f auth tokens

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-02-18 09:58:13 +01:00
parent 5c756354b2
commit 8be806683e

27
clean_2f_tokens.md Normal file
View 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.