From b33ac68c14c2d61132f356190ceda956af9c6d25 Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Fri, 20 Dec 2024 19:14:12 +0000 Subject: [PATCH] Releasing version 2.141.1 Co-authored-by: Harsh Kumar --- CHANGELOG.rst | 13 +++++++++++-- ...nstance_principals_security_token_signer.py | 18 +++++++++--------- src/oci/version.py | 2 +- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8faaf0e04..208844534 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,15 @@ Change Log All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_. + +==================== +2.141.1 - 2024-12-20 +==================== + +Fixed +----- +* `Github Issue #728 `_ for RPv1.1 + ==================== 2.141.0 - 2024-12-17 ==================== @@ -1938,7 +1947,7 @@ Breaking * `EmDataLakeClient` was renamed to `EmWarehouseClient` in the Enterprise Manager Warehouse service * `EmDataLakeClientCompositeOperations` was renamed to `EmWarehouseClientCompositeOperations` in the Enterprise Manager Warehouse service -===================== +==================== 2.79.0 - 2022-08-16 ==================== @@ -2063,7 +2072,7 @@ Breaking * Parameter `host_type` in operation `list_host_insights` in the Operations Insights service has strict value checking for allowed values. `ValueError` is raised if an invalid value is provided. * Parameter `preserve_data_volumes` is removed from operation `terminate_instance` in the Compute service. -===================== +==================== 2.74.0 - 2022-07-05 ==================== diff --git a/src/oci/auth/signers/instance_principals_security_token_signer.py b/src/oci/auth/signers/instance_principals_security_token_signer.py index 337a932c4..79fff364b 100644 --- a/src/oci/auth/signers/instance_principals_security_token_signer.py +++ b/src/oci/auth/signers/instance_principals_security_token_signer.py @@ -61,16 +61,16 @@ class InstancePrincipalsSecurityTokenSigner(X509FederationClientBasedSecurityTok the certificate & corresponding private key (if there is one defined for this retriever) from UrlBasedCertificateRetriever, region, federation endpoint, and the response for receiving the token from the federation endpoint """ - def __init__(self, **kwargs): - self.METADATA_URL_BASE_ENV_VAR = 'OCI_METADATA_BASE_URL' - self.DEFAULT_METADATA_URL_BASE = 'http://169.254.169.254/opc/v2' - self.METADATA_URL_BASE = os.environ.get(self.METADATA_URL_BASE_ENV_VAR, self.DEFAULT_METADATA_URL_BASE) - self.GET_REGION_URL = '{}/instance/region'.format(self.METADATA_URL_BASE) - self.LEAF_CERTIFICATE_URL = '{}/identity/cert.pem'.format(self.METADATA_URL_BASE) - self.LEAF_CERTIFICATE_PRIVATE_KEY_URL = '{}/identity/key.pem'.format(self.METADATA_URL_BASE) - self.INTERMEDIATE_CERTIFICATE_URL = '{}/identity/intermediate.pem'.format(self.METADATA_URL_BASE) - self.METADATA_AUTH_HEADERS = {'Authorization': 'Bearer Oracle'} + METADATA_URL_BASE_ENV_VAR = 'OCI_METADATA_BASE_URL' + DEFAULT_METADATA_URL_BASE = 'http://169.254.169.254/opc/v2' + METADATA_URL_BASE = os.environ.get(METADATA_URL_BASE_ENV_VAR, DEFAULT_METADATA_URL_BASE) + GET_REGION_URL = '{}/instance/region'.format(METADATA_URL_BASE) + LEAF_CERTIFICATE_URL = '{}/identity/cert.pem'.format(METADATA_URL_BASE) + LEAF_CERTIFICATE_PRIVATE_KEY_URL = '{}/identity/key.pem'.format(METADATA_URL_BASE) + INTERMEDIATE_CERTIFICATE_URL = '{}/identity/intermediate.pem'.format(METADATA_URL_BASE) + METADATA_AUTH_HEADERS = {'Authorization': 'Bearer Oracle'} + def __init__(self, **kwargs): self.logger = logging.getLogger("{}.{}".format(__name__, id(self))) self.logger.addHandler(logging.NullHandler()) if kwargs.get('log_requests'): diff --git a/src/oci/version.py b/src/oci/version.py index 1084349b4..e41ffc164 100644 --- a/src/oci/version.py +++ b/src/oci/version.py @@ -2,4 +2,4 @@ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -__version__ = "2.141.0" +__version__ = "2.141.1"