Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/getsops/sotp
Get TOTP from the command line using TOTP secrets in Sops encrypted files.
https://github.com/getsops/sotp
Last synced: about 1 month ago
JSON representation
Get TOTP from the command line using TOTP secrets in Sops encrypted files.
- Host: GitHub
- URL: https://github.com/getsops/sotp
- Owner: getsops
- Created: 2020-03-27T18:32:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T17:33:57.000Z (about 2 months ago)
- Last Synced: 2024-10-28T18:49:43.281Z (about 2 months ago)
- Language: Go
- Homepage: https://getsops.io/
- Size: 242 KB
- Stars: 35
- Watchers: 10
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# SOTP: Sops OTP
Small utility to store AWS TOTP secrets into Sops encrypted files and generate OTP on the command line.
Usage:
```
$ sotp test1
current one-time password is: 693190
```Sotp reads it's configuration from `config.yaml` in the local directory.
The config must be a valid Sops encrypted YAML file with the syntax:```yaml
accounts:
- name: test1
totpsecret: YAGQP5IP77OO3HMPS3D2KPMSNLNDIB7EO22EGAN3JEGE3DAR37Z2U5YDGKGN44VA
- name: test2
totpsecret: xyzabcd....
```* `name` is just a reference name that you'll use when invoking Sotp
* `totpsecret` is a the secret seed you get from the `Adding a virtual MFA` screen in the AWS IAM console of a given user![aws_mfa_screen](./docs/aws_vmfa.png)