Skip to main content

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

gcloud_network_authorizer-0.0.6.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gcloud_network_authorizer-0.0.6-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file gcloud_network_authorizer-0.0.6.tar.gz.

File metadata

File hashes

Hashes for gcloud_network_authorizer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 5f61fab7db95554bf4c9f1e0a6403620a302161998bb063995022e02ded13b31
MD5 f06a1b0b0ab947bcd986269ab4f1bc2c
BLAKE2b-256 c5087483cb24feef9fa9fc249adc7cfc3fd2c189d509921768cc5fac128c4e33

See more details on using hashes here.

File details

Details for the file gcloud_network_authorizer-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for gcloud_network_authorizer-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0d05d0c432b45791443dbcee23e1d5db8626c216ed686c665520937d912ec880
MD5 1474034c90af55259351caac6a7976e1
BLAKE2b-256 d85b05f7374515c0a5b49e93340da1c56af778dc55791932cc498be1c47b7279

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page