https://github.com/bastgau/snow-revoke-privileges
Script designed to simplify the management of permissions in your Snowflake databases.
https://github.com/bastgau/snow-revoke-privileges
data database dba dev-container python snowflake
Last synced: about 1 year ago
JSON representation
Script designed to simplify the management of permissions in your Snowflake databases.
- Host: GitHub
- URL: https://github.com/bastgau/snow-revoke-privileges
- Owner: bastgau
- Created: 2023-06-13T05:59:55.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-01T17:24:45.000Z (over 2 years ago)
- Last Synced: 2024-03-02T17:37:45.647Z (over 2 years ago)
- Topics: data, database, dba, dev-container, python, snowflake
- Language: Python
- Homepage:
- Size: 51.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://gitHub.com/bastgau)
[](https://www.twitter.com/_bastiengautier)
[](https://code.visualstudio.com/)
[](https://www.python.org/)
[](https://www.docker.com/)
[](https://github.com/bastgau/snow-revoke-privileges/actions/workflows/main.yml)
# snow-revoke-privileges
[](https://www.snowflake.com/)
Script designed to simplify the management of permissions in your **Snowflake** databases.
With this tool, you can effortlessly revoke all permissions granted to existing objects, as well as future objects. Additionally, it modify object ownership by assigning them to another role (by default **SYSADMIN**).
## Usage
Please, check the instructions before executing the command line :
```
python -m snow_revoke_privileges
```
## Requirements
The project uses [pip](https://pypi.org/project/pip/) as package installer.
A configuration file named __config.yaml__ must be created using the same format as [config-example.yaml](https://github.com/bastgau/snow-revoke-privileges/blob/master/src/snow_revoke_privileges/config/config-example.yaml).
You have to use an account with the permissions to **REVOKE PRIVILEGE** and **GRANT OWNERSHIP**.
## VSCode extensions
The following extensions are recommanded:
- [AutoDocstring - Python Docstring Generator](https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring)
- [Prettify JSON](https://marketplace.visualstudio.com/items?itemName=mohsen1.prettify-json)
- [Pylance](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance)
- [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
- [Python Type Hint](https://marketplace.visualstudio.com/items?itemName=njqdev.vscode-python-typehint)
- [Todo Tree](https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree)
- [VSCode-icons](https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons)
The file .vcode/settings.json was updated with my own configuration.
Enjoy!