mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-22 22:39:40 +00:00
✨ Add AuthConfig
struct and pass domains in AUTH_APPROVED_DOMAINS
environment variable
This commit is contained in:
parent
2126fc83a7
commit
4bb68afaaf
@ -80,10 +80,15 @@ type ResourcesConfig struct {
|
|||||||
Hub ResourceRequirements `yaml:"hub"`
|
Hub ResourceRequirements `yaml:"hub"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type AuthConfig struct {
|
||||||
|
ApprovedDomains []string `yaml:"approvedDomains"`
|
||||||
|
}
|
||||||
|
|
||||||
type IngressConfig struct {
|
type IngressConfig struct {
|
||||||
Enabled bool `yaml:"enabled" default:"false"`
|
Enabled bool `yaml:"enabled" default:"false"`
|
||||||
Host string `yaml:"host" default:"ks.svc.cluster.local"`
|
Host string `yaml:"host" default:"ks.svc.cluster.local"`
|
||||||
TLS []networking.IngressTLS `yaml:"tls"`
|
TLS []networking.IngressTLS `yaml:"tls"`
|
||||||
|
Auth AuthConfig `yaml:"auth"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TapConfig struct {
|
type TapConfig struct {
|
||||||
|
@ -265,6 +265,10 @@ func (provider *Provider) BuildHubPod(opts *PodOptions) (*core.Pod, error) {
|
|||||||
Name: "SCRIPTING_SCRIPTS",
|
Name: "SCRIPTING_SCRIPTS",
|
||||||
Value: string(scriptsMarshalled),
|
Value: string(scriptsMarshalled),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: "AUTH_APPROVED_DOMAINS",
|
||||||
|
Value: strings.Join(config.Config.Tap.Ingress.Auth.ApprovedDomains, ","),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user