Skip to content

Commit

Permalink
Preparing for 1.4.2 release
Browse files Browse the repository at this point in the history
- Added capability to use Session Token based authentication:
     * NewSessionTokenSignatureProvider
     * NewSessionTokenSignatureProviderFromFile
- Cloud only: added support to read region from system environment variable
  OCI_REGION if using user principal or session token authentication
- On premise only: Added support for default namespaces in requests
- Latest Oracle Cloud Infrastructure regions and region codes: OZZ, DRS
- Updated realm domain for OC22/NAP
  • Loading branch information
connelly38 authored Sep 25, 2023
1 parent 31340d5 commit 345de20
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/).

## Unreleased
## 1.4.2 - 2023-09-25

### Added

Expand All @@ -12,6 +12,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
* NewSessionTokenSignatureProviderFromFile
- Cloud only: added support to read region from system environment variable
OCI_REGION if using user principal or session token authentication
- On premise only: Added support for default namespaces in requests
- Latest Oracle Cloud Infrastructure regions and region codes: OZZ, DRS
- Updated realm domain for OC22/NAP

## 1.4.1 - 2023-08-21

Expand Down
20 changes: 19 additions & 1 deletion nosqldb/common/region.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,16 @@ const (

// RegionEUDCCZurich1 represents the dedicated region for Zurich
RegionEUDCCZurich1 Region = "eu-dcc-zurich-1"

// OC27 REGIONS

// RegionUSDCCSWJordan1 represents the dedicated region for SWJordan1
RegionUSDCCSWJordan1 Region = "us-dcc-swjordan-1"

// OC28 REGIONS

// RegionUSDCCSWJordan1 represents the dedicated region for SWJordan2
RegionUSDCCSWJordan2 Region = "us-dcc-swjordan-2"
)

var realm = map[string]string{
Expand All @@ -207,8 +217,10 @@ var realm = map[string]string{
"oc17": "oraclecloud17.com",
"oc19": "oraclecloud.eu",
"oc20": "oraclecloud20.com",
"oc22": "oraclecloud22.com",
"oc22": "psn-pco.it",
"oc24": "oraclecloud24.com",
"oc27": "oraclecloud27.com",
"oc28": "oraclecloud28.com",
}

var regionRealm = map[Region]string{
Expand Down Expand Up @@ -291,6 +303,10 @@ var regionRealm = map[Region]string{
RegionEUDCCRome1: "oc22",

RegionEUDCCZurich1: "oc24",

RegionUSDCCSWJordan1: "oc27",

RegionUSDCCSWJordan2: "oc28",
}

var shortNameRegion = map[string]Region{
Expand Down Expand Up @@ -361,6 +377,8 @@ var shortNameRegion = map[string]Region{
"beg": RegionEUJovanovac1,
"nap": RegionEUDCCRome1,
"avz": RegionEUDCCZurich1,
"ozz": RegionUSDCCSWJordan1,
"drs": RegionUSDCCSWJordan2,
}

func (region Region) secondLevelDomain() string {
Expand Down

0 comments on commit 345de20

Please sign in to comment.