forked from strimzi/strimzi-kafka-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Permit specification of SCRAM-SHA-512 authn in CR This applies equally for both TLS and Plain listeners. Also fix @Descrption "authorization" → "authentication" * New exception type * CO changes for SCRAM-SHA * Change docker images for SCRAM SHA * Remove sasl.mechanism from config * Fix Builder package on KafkaListenerAuthenticationScramSha512 * Scram uo (strimzi#795) * Add support for SCRAM-SHA-512 to KafkaUser CR
- Loading branch information
1 parent
7fed8d9
commit 3634c5c
Showing
52 changed files
with
1,637 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
api/src/main/java/io/strimzi/api/kafka/model/KafkaListenerAuthenticationScramSha512.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2018, Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
package io.strimzi.api.kafka.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import io.strimzi.crdgenerator.annotations.Description; | ||
import io.sundr.builder.annotations.Buildable; | ||
|
||
/** | ||
* Configures a listener to use SASL SCRAM-SHA-512 for authentication. | ||
*/ | ||
@Buildable( | ||
editableEnabled = false, | ||
generateBuilderPackage = false, | ||
builderPackage = "io.fabric8.kubernetes.api.builder" | ||
) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class KafkaListenerAuthenticationScramSha512 extends KafkaListenerAuthentication { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public static final String SCRAM_SHA_512 = "scram-sha-512"; | ||
|
||
@Description("Must be `" + SCRAM_SHA_512 + "`") | ||
@Override | ||
public String getType() { | ||
return SCRAM_SHA_512; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
api/src/main/java/io/strimzi/api/kafka/model/KafkaUserScramSha512ClientAuthentication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2018, Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
package io.strimzi.api.kafka.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import io.strimzi.crdgenerator.annotations.Description; | ||
import io.sundr.builder.annotations.Buildable; | ||
|
||
@Buildable( | ||
editableEnabled = false, | ||
generateBuilderPackage = false, | ||
builderPackage = "io.fabric8.kubernetes.api.builder" | ||
) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class KafkaUserScramSha512ClientAuthentication extends KafkaUserAuthentication { | ||
private static final long serialVersionUID = 1L; | ||
|
||
public static final String TYPE_SCRAM_SHA_512 = "scram-sha-512"; | ||
|
||
@Description("Must be `" + TYPE_SCRAM_SHA_512 + "`") | ||
@Override | ||
public String getType() { | ||
return TYPE_SCRAM_SHA_512; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...er-operator/src/main/java/io/strimzi/operator/cluster/model/InvalidResourceException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright 2018, Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
package io.strimzi.operator.cluster.model; | ||
|
||
public class InvalidResourceException extends RuntimeException { | ||
public InvalidResourceException() { | ||
super(); | ||
} | ||
|
||
protected InvalidResourceException(String s) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.