Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eteissonniere/gcp-sa-dump
A golang script to dump every service account existing on GCP and associated data
https://github.com/eteissonniere/gcp-sa-dump
Last synced: 5 days ago
JSON representation
A golang script to dump every service account existing on GCP and associated data
- Host: GitHub
- URL: https://github.com/eteissonniere/gcp-sa-dump
- Owner: ETeissonniere
- Created: 2023-08-07T02:58:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-07T03:07:15.000Z (over 1 year ago)
- Last Synced: 2023-08-07T04:24:46.153Z (over 1 year ago)
- Language: Go
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `gcp-sa-dump`
A simple script to list every service account along with its keys on GCP.
This script assumes you have full view access to every project on GCP, if you don't it may fail.
It will fetch on every project you may have access to every service account and the following metadata associted to them:
- account ID
- display name
- state (whether it is disable or not)
- keys## Usage
You may modulate the output format with the `-out` CLI flag. The following formats are supported:
- `text` (default)
- `csv`### Text Output
```bash
$ go run .
```### CSV Output
```bash
$ go run . -out csv
$ go run . -out csv > ./output.csv # to save to a file
```