Skip to content

Commit

Permalink
Add application permissions field
Browse files Browse the repository at this point in the history
This will allow restriction configuration for non authorized access. One note is that you will need to properly configure the roles if you are using x509 - check the role OID or use same user as existing role.
  • Loading branch information
voiski authored and jgramoll committed Nov 30, 2020
1 parent 7cf4f86 commit eff4c74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ type Application struct {
RepoType string `json:"repoType"`
RepoProjectKey string `json:"repoProjectKey"`
RepoSlug string `json:"repoSlug"`
Permissions *Permissions `json:"permissions"`
PlatformHealthOnly bool `json:"platformHealthOnly"`
PlatformHealthOnlyShowOverride bool `json:"platformHealthOnlyShowOverride"`
EnableRestartRunningExecutions bool `json:"enableRestartRunningExecutions"`
Expand All @@ -57,6 +58,13 @@ type ApplicationAttributes struct {
Application *Application `json:"attributes"`
}

// Permissions define the authorized groups access
type Permissions struct {
Read []string `json:"READ"`
Execute []string `json:"EXECUTE"`
Write []string `json:"WRITE"`
}

// NewAwsProviderSettings return Aws provider settings with default values
func NewAwsProviderSettings() *AwsProviderSettings {
return &AwsProviderSettings{
Expand Down

0 comments on commit eff4c74

Please sign in to comment.