Skip to content

Commit

Permalink
Merge pull request #22 from redpanda-data/sj/feat/add-org-id-to-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalKorepta authored Nov 22, 2023
2 parents d03a1bb + 53cae91 commit b394182
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ type EnterpriseLoginRedpandaCloud struct {

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

// 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.
OrgID string `json:"orgId,omitempty" yaml:"orgId,omitempty"`
}

// IsGoogleLoginEnabled returns true if Google SSO provider is enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,13 @@ spec:
type: string
enabled:
type: boolean
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
required:
- audience
- domain
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 b394182

Please sign in to comment.