gcp_iam_search

command module
v0.0.0-...-44cf1d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

Use the tool to create and query a sqlite database containing a mapping of the GCP IAM permissions to roles. Useful when you get an error message stating that you need a specific GCP IAM permission and do not know which roles contain the permission.

Usage

First you need to create a sqlite database containing the mapping. Then you can query it using the commandline or via a web interface.

Demo available at:
https://gcp-iam-search-6moformwsq-uc.a.run.app/

Create local database

Create the sqlite database as follows:

gcp_iam_search createdb

Now you have a iam.db file.

Web usage

By default port 3000 is used to serve.

./gcp_iam_search serve

Here's the query page:

Image

Example results: Image

Commandline query

Query for roles as follows:

./gcp_iam_search query compute.instances.listR

Additional help.

The commandline tool supports --help to find all available commands and options.

For issues, please file an issue here.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL