Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions google_cloud_utilities/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def check_instance_info(instances_client, zone, instance_name=None, internal_ip=



def _generate_iap_jwt_payload(service_account_email: str, resource_url: str) -> str:
def generate_iap_jwt_payload(service_account_email: str, resource_url: str) -> str:
"""
Create the JWT payload IAP expects for service-account signed JWT auth.
resource_url should be like: https://your-host/* (or exact URL)
Expand All @@ -754,7 +754,7 @@ def _generate_iap_jwt_payload(service_account_email: str, resource_url: str) ->
return json.dumps(payload)


def _get_iap_signed_jwt(service_account_email: str, resource_url: str) -> str:
def get_iap_signed_jwt(service_account_email: str, resource_url: str) -> str:
"""
Signs the JWT payload using the IAM Credentials API.
Requires the caller (your ADC identity) to have roles/iam.serviceAccountTokenCreator
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
EMAIL = 'johnf1004@yahoo.co.uk'
AUTHOR = 'John Foley'
REQUIRES_PYTHON = '>=3.9.7'
VERSION = '0.8.7'
VERSION = '0.8.8'

# What packages are required for this module to be executed?
REQUIRED = [
Expand Down