No project description provided
Project description
gcloud-authorizer
Simple python script to authorize dynamic IPs for Google Cloud clusters and SQL databases
This is a very simple script that authorizes your current IPv4 IP in the Google Cloud SQL instances and the Google Cloud Kubernetes instances.
There is a lot left on implementation like being able to save many instances and code quality (yikes). The data saved is not encrypted yet but it is not the highest priority since this is just basic information which is useless without any authorization data like an access token (which is generated by the gcloud command).
GitHub link: https://github.com/ArtAhmetaj/gcloud-authorizer
Installing
pip install gcloud-network-authorizer
Usage
The base data of the instance, the project name, the zone (conditionally if it’s a database or a cluster change) and the network name must be first saved and then sent in subsequent calls.
Sql usage
authorize_networks sql_save –name=<author_name> –sql_instance=<instance_name> –project_name=<project_name>
authorize_networks authorize_sql
Kubernetes usage
authorize_networks kubernetes_save –name=<author_name> –kubernetes_instance=<name_of_instance> –project_name=<name_of_project> –zone=<geographical_zone>
authorize_networks authorize_kubernetes
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters