Skip to content

Commit

Permalink
operator: add orgId property to console cdr
Browse files Browse the repository at this point in the history
Add an extra property to the console config so Dataplane API can be
deployed

Signed-off-by: Santiago Jimenez Giraldo <[email protected]>
  • Loading branch information
sago2k8 committed Nov 22, 2023
1 parent d03a1bb commit 83e3114
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ type EnterpriseLoginRedpandaCloud struct {

// AllowedOrigins indicates if response is allowed from given origin
AllowedOrigins []string `json:"allowedOrigins,omitempty" yaml:"allowedOrigins,omitempty"`

// OrgID is the id of the organization, use for validating auth tokens
OrgID string `json:"orgId" yaml:"orgId"`
}

// IsGoogleLoginEnabled returns true if Google SSO provider is enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,13 @@ spec:
description: EnterpriseLoginRedpandaCloud defines configurable
fields for RedpandaCloud SSO provider
properties:
orgId:
description: OrgID refers to the Redpanda Cloud
organization id that Console is running in If the
OrgID is set, Console will ensure that incoming
requests will only pass if the provided access token
matches this org id in the custom claims
type: string
allowedOrigins:
description: AllowedOrigins indicates if response is allowed
from given origin
Expand Down
1 change: 1 addition & 0 deletions src/go/k8s/pkg/console/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ func (cm *ConfigMap) genLogin(
switch {
case provider.RedpandaCloud != nil:
enterpriseLogin.RedpandaCloud = &vectorizedv1alpha1.EnterpriseLoginRedpandaCloud{
OrgID: provider.RedpandaCloud.OrgID,
Enabled: provider.RedpandaCloud.Enabled,
Domain: provider.RedpandaCloud.Domain,
Audience: provider.RedpandaCloud.Audience,
Expand Down

0 comments on commit 83e3114

Please sign in to comment.