Skip to content
Merged
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
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

## [Unreleased]

### Fixed

- Fix OIDC endpoint construction in case the `rootPath` does have a trailing slash ([#569]).
- BREAKING: Use distinct ServiceAccounts for the Stacklets, so that multiple Stacklets can be
deployed in one namespace. Existing Stacklets will use the newly created ServiceAccounts after
restart ([#568]).

[#568]: https://github.com/stackabletech/superset-operator/pull/568
[#569]: https://github.com/stackabletech/superset-operator/pull/569

## [24.11.0] - 2024-11-18

### Added
Expand Down
95 changes: 91 additions & 4 deletions Cargo.lock

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

14 changes: 7 additions & 7 deletions Cargo.nix

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

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ fnv = "1.0"
futures = { version = "0.3", features = ["compat"] }
indoc = "2.0"
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.7.0" }
rstest = "0.23"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
snafu = "0.8"
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.80.0" }
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.82.0" }
strum = { version = "0.26", features = ["derive"] }
tokio = { version = "1.40", features = ["full"] }
tracing = "0.1"

# [patch."https://github.com/stackabletech/operator-rs.git"]
# stackable-operator = { git = "https://github.com/stackabletech//operator-rs.git", branch = "main" }
# stackable-operator = { path = "../operator-rs/crates/stackable-operator" }
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ SHELL=/usr/bin/env bash -euo pipefail
render-readme:
scripts/render_readme.sh

render-docs:
scripts/docs_templating.sh

## Docker related targets
docker-build:
docker build --force-rm --build-arg VERSION=${VERSION} -t "${DOCKER_REPO}/${ORGANIZATION}/${OPERATOR_NAME}:${VERSION}-${ARCH}" -f docker/Dockerfile .
Expand Down
6 changes: 3 additions & 3 deletions crate-hashes.json

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 @@ -2,17 +2,7 @@
set -euo pipefail

# DO NOT EDIT THE SCRIPT
# Instead, update the j2 template, and regenerate it for dev:
# cat <<EOF | jinja2 --format yaml getting_started.sh.j2 -o getting_started.sh
# helm:
# repo_name: stackable-dev
# repo_url: https://repo.stackable.tech/repository/helm-dev/
# versions:
# commons: 0.0.0-dev
# listener: 0.0.0-dev
# secret: 0.0.0-dev
# superset: 0.0.0-dev
# EOF
# Instead, update the j2 template, and regenerate it for dev with `make render-docs`.

# TODO (@NickLarsenNZ): Use bitnami/postgres chart, and add version var to the above list
# See similar changes in: https://github.com/stackabletech/hive-operator/pull/489/commits/8189f196f018c009370ae9b07a3f9609ee2e8681
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@
set -euo pipefail

# DO NOT EDIT THE SCRIPT
# Instead, update the j2 template, and regenerate it for dev:
# cat <<EOF | jinja2 --format yaml getting_started.sh.j2 -o getting_started.sh
# helm:
# repo_name: stackable-dev
# repo_url: https://repo.stackable.tech/repository/helm-dev/
# versions:
# commons: 0.0.0-dev
# listener: 0.0.0-dev
# secret: 0.0.0-dev
# superset: 0.0.0-dev
# EOF
# Instead, update the j2 template, and regenerate it for dev with `make render-docs`.

# TODO (@NickLarsenNZ): Use bitnami/postgres chart, and add version var to the above list
# See similar changes in: https://github.com/stackabletech/hive-operator/pull/489/commits/8189f196f018c009370ae9b07a3f9609ee2e8681
Expand Down
16 changes: 8 additions & 8 deletions rust/crd/src/authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pub enum SupersetAuthenticationClassResolved {
},
Oidc {
provider: oidc::AuthenticationProvider,
oidc: oidc::ClientAuthenticationOptions<()>,
client_auth_options: oidc::ClientAuthenticationOptions<()>,
},
}

Expand Down Expand Up @@ -310,7 +310,7 @@ impl SupersetClientAuthenticationDetailsResolved {

Ok(SupersetAuthenticationClassResolved::Oidc {
provider: provider.to_owned(),
oidc: auth_details
client_auth_options: auth_details
.common
.oidc_or_error(auth_class_name)
.context(OidcConfigurationInvalidSnafu)?
Expand Down Expand Up @@ -415,7 +415,7 @@ mod tests {
oidc:
hostname: first.oidc.server
port: 443
rootPath: /realms/main
rootPath: /realms/main/
principalClaim: preferred_username
scopes:
- openid
Expand All @@ -436,7 +436,7 @@ mod tests {
provider:
oidc:
hostname: second.oidc.server
rootPath: /realms/test
rootPath: /realms/test/
principalClaim: preferred_username
scopes:
- openid
Expand All @@ -453,7 +453,7 @@ mod tests {
provider: oidc::AuthenticationProvider::new(
HostName::try_from("first.oidc.server".to_string()).unwrap(),
Some(443),
"/realms/main".into(),
"/realms/main/".into(),
TlsClientDetails {
tls: Some(Tls {
verification: TlsVerification::Server(TlsServerVerification {
Expand All @@ -465,7 +465,7 @@ mod tests {
vec!["openid".into(), "email".into(), "profile".into()],
Some(IdentityProviderHint::Keycloak)
),
oidc: oidc::ClientAuthenticationOptions {
client_auth_options: oidc::ClientAuthenticationOptions {
client_credentials_secret_ref: "superset-oidc-client1".into(),
extra_scopes: vec!["groups".into()],
product_specific_fields: ()
Expand All @@ -475,13 +475,13 @@ mod tests {
provider: oidc::AuthenticationProvider::new(
HostName::try_from("second.oidc.server".to_string()).unwrap(),
None,
"/realms/test".into(),
"/realms/test/".into(),
TlsClientDetails { tls: None },
"preferred_username".into(),
vec!["openid".into(), "email".into(), "profile".into()],
None
),
oidc: oidc::ClientAuthenticationOptions {
client_auth_options: oidc::ClientAuthenticationOptions {
client_credentials_secret_ref: "superset-oidc-client2".into(),
extra_scopes: Vec::new(),
product_specific_fields: ()
Expand Down
3 changes: 3 additions & 0 deletions rust/operator-binary/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ strum.workspace = true
tokio.workspace = true
tracing.workspace = true

[dev-dependencies]
rstest.workspace = true

[build-dependencies]
built.workspace = true
Loading
Loading