Skip to content

Commit f78b37f

Browse files
Rename admin_dn() to super_admin_dn()
1 parent fd55eda commit f78b37f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

rust/operator-binary/src/controller/build/node_config.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,16 @@ impl NodeConfig {
243243
if !security.config.is_only_managed_by_api() {
244244
config.insert(
245245
CONFIG_OPTION_PLUGINS_SECURITY_AUTHCZ_ADMIN_DN.to_owned(),
246-
json!(self.admin_dn()),
246+
json!(self.super_admin_dn()),
247247
);
248248
}
249249
}
250250

251251
config
252252
}
253253

254-
pub fn admin_dn(&self) -> String {
254+
/// Distinguished name (DN) of the super admin certificate
255+
pub fn super_admin_dn(&self) -> String {
255256
// The common name field is limited to 64 characters, see RFC 5280.
256257
format!("CN=update-security-config.{}", self.cluster.uid)
257258
}

rust/operator-binary/src/controller/build/role_group_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ cp --archive config/opensearch.keystore {OPENSEARCH_INITIALIZED_KEYSTORE_DIRECTO
632632
let env_vars = EnvVarSet::new()
633633
.with_value(
634634
&EnvVarName::from_str_unsafe("ADMIN_DN"),
635-
self.node_config.admin_dn(),
635+
self.node_config.super_admin_dn(),
636636
)
637637
.with_field_path(
638638
&EnvVarName::from_str_unsafe("POD_NAME"),

0 commit comments

Comments
 (0)