Skip to content

Commit

Permalink
Rename NoOidcTlsVerificationNotSupported -> SkippingTlsVerificationNo…
Browse files Browse the repository at this point in the history
…tSupported
  • Loading branch information
sbernauer committed Nov 25, 2024
1 parent fd246a4 commit 0031f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/operator-binary/src/security/oidc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub enum Error {
},

#[snafu(display("Nifi doesn't support skipping the OIDC TLS verification"))]
NoOidcTlsVerificationNotSupported {},
SkippingTlsVerificationNotSupported {},
}

/// Generate a secret containing the password for the admin user that can access the API.
Expand Down Expand Up @@ -144,7 +144,7 @@ pub fn add_oidc_config_to_properties(

if let Some(tls) = &provider.tls.tls {
let truststore_strategy = match tls.verification {
TlsVerification::None {} => NoOidcTlsVerificationNotSupportedSnafu.fail()?,
TlsVerification::None {} => SkippingTlsVerificationNotSupportedSnafu.fail()?,
TlsVerification::Server(TlsServerVerification {
ca_cert: CaCert::SecretClass(_),
}) => "NIFI", // The cert get's added to the stackable truststore
Expand Down

0 comments on commit 0031f97

Please sign in to comment.