-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [PL-58641]: oidc support for gcp sm and kms (#633)
* feat: [PL-58641]: oidc support for gcp sm and kms * feat: [PL-58641]: add oidc support for gcp sm and gcp kms * feat: [PL-58641]: add oidc support for gcp sm and gcp kms
- Loading branch information
1 parent
2596cc5
commit c0fc47b
Showing
8 changed files
with
97 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
harness/nextgen/model_gcp_oidc_token_exchange_details_for_delegate.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Harness NextGen Software Delivery Platform API Reference | ||
* | ||
* This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub | ||
* | ||
* API version: 3.0 | ||
* Contact: [email protected] | ||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
*/ | ||
package nextgen | ||
|
||
type GcpOidcTokenExchangeDetailsForDelegate struct { | ||
OidcIdToken string `json:"oidcIdToken,omitempty"` | ||
OidcAccessTokenStsEndpoint string `json:"oidcAccessTokenStsEndpoint,omitempty"` | ||
OidcAccessTokenIamSaEndpoint string `json:"oidcAccessTokenIamSaEndpoint,omitempty"` | ||
GcpServiceAccountEmail string `json:"gcpServiceAccountEmail,omitempty"` | ||
OidcWorkloadAccessTokenRequestStructure *OidcWorkloadAccessTokenRequest `json:"oidcWorkloadAccessTokenRequestStructure,omitempty"` | ||
OidcChartmuseumGcpConfigStructure *OidcChartmuseumGcpConfig `json:"oidcChartmuseumGcpConfigStructure,omitempty"` | ||
IdTokenExpiryTime int64 `json:"idTokenExpiryTime,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Harness NextGen Software Delivery Platform API Reference | ||
* | ||
* This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub | ||
* | ||
* API version: 3.0 | ||
* Contact: [email protected] | ||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
*/ | ||
package nextgen | ||
|
||
type OidcAccessTokenOptions struct { | ||
UserProject string `json:"userProject,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Harness NextGen Software Delivery Platform API Reference | ||
* | ||
* This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub | ||
* | ||
* API version: 3.0 | ||
* Contact: [email protected] | ||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
*/ | ||
package nextgen | ||
|
||
type OidcChartmuseumGcpConfig struct { | ||
Type_ string `json:"type,omitempty"` | ||
Audience string `json:"audience,omitempty"` | ||
SubjectTokenType string `json:"subject_token_type,omitempty"` | ||
TokenUrl string `json:"token_url,omitempty"` | ||
ServiceAccountImpersonationUrl string `json:"service_account_impersonation_url,omitempty"` | ||
} |
20 changes: 20 additions & 0 deletions
20
harness/nextgen/model_oidc_workload_access_token_request.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Harness NextGen Software Delivery Platform API Reference | ||
* | ||
* This is the Open Api Spec 3 for the NextGen Manager. This is under active development. Beware of the breaking change with respect to the generated code stub | ||
* | ||
* API version: 3.0 | ||
* Contact: [email protected] | ||
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) | ||
*/ | ||
package nextgen | ||
|
||
type OidcWorkloadAccessTokenRequest struct { | ||
Audience string `json:"audience,omitempty"` | ||
GrantType string `json:"grant_type,omitempty"` | ||
RequestedTokenType string `json:"requested_token_type,omitempty"` | ||
Scope string `json:"scope,omitempty"` | ||
SubjectTokenType string `json:"subject_token_type,omitempty"` | ||
SubjectToken string `json:"subject_token,omitempty"` | ||
Options *OidcAccessTokenOptions `json:"options,omitempty"` | ||
} |