Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [PL-58649]: Added JWT auth config in VaultConnector #625

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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: 4 additions & 0 deletions harness/cd/unpublished/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ type SecretManager struct {
UsePutSecret bool `json:"usePutSecret,omitempty"`
ForceDeleteWithoutRecovery bool `json:"forceDeleteWithoutRecovery,omitempty"`
RecoveryWindowInDays int64 `json:"recoveryWindowInDays,omitempty"`
UseJwtAuth bool `json:"useJwtAuth,omitempty"`
JwtAuthRole string `json:"jwtAuthRole,omitempty"`
JwtAuthPath string `json:"jwtAuthPath,omitempty"`
ExecuteOnDelegate bool `json:"executeOnDelegate"`
}

type User struct {
Expand Down
4 changes: 4 additions & 0 deletions harness/nextgen/docs/VaultConnector.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Name | Type | Description | Notes
**Default_** | **bool** | | [optional] [default to null]
**AccessType** | **string** | | [optional] [default to null]
**ReadOnly** | **bool** | | [optional] [default to null]
**UseJwtAuth** | **bool** | | [optional] [default to false]
**JwtAuthRole** | **string** | | [optional] [default to null]
**JwtAuthPath** | **string** | | [optional] [default to null]
**ExecuteOnDelegate** | **bool** | | [optional] [default to true]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

7 changes: 7 additions & 0 deletions harness/nextgen/model_vault_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,11 @@ type VaultConnector struct {
AccessType string `json:"accessType,omitempty"`
Default_ bool `json:"default,omitempty"`
ReadOnly bool `json:"readOnly,omitempty"`
// Boolean value to indicate if JWT Auth is used for authentication.
UseJwtAuth bool `json:"useJwtAuth,omitempty"`
// This is the role name which is created to perform JWT auth method.
JwtAuthRole string `json:"jwtAuthRole,omitempty"`
// This specifies mount path where JWT auth method is enabled.
JwtAuthPath string `json:"jwtAuthPath,omitempty"`
ExecuteOnDelegate bool `json:"executeOnDelegate"`
}