-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DBZ-7087 Ability to protect JMX with password credentials
- Loading branch information
Showing
4 changed files
with
217 additions
and
10 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
57 changes: 57 additions & 0 deletions
57
src/main/java/io/debezium/operator/model/JmxAuthentication.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,57 @@ | ||
/* | ||
* Copyright Debezium Authors. | ||
* | ||
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
package io.debezium.operator.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyDescription; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
@JsonPropertyOrder({ "enabled", "secret", "accessFile", "secretFile" }) | ||
@JsonInclude(JsonInclude.Include.NON_DEFAULT) | ||
public class JmxAuthentication { | ||
@JsonPropertyDescription("Whether JMX authentication should be enabled for this Debezium Server instance.") | ||
private boolean enabled = false; | ||
@JsonPropertyDescription("Secret providing credential files") | ||
@JsonProperty(required = true) | ||
private String secret; | ||
@JsonPropertyDescription("JMX access file name and secret key") | ||
private String accessFile = "jmxremote.access"; | ||
@JsonPropertyDescription("JMX password file name and secret key") | ||
private String passwordFile = "jmxremote.password"; | ||
|
||
public boolean isEnabled() { | ||
return enabled; | ||
} | ||
|
||
public void setEnabled(boolean enabled) { | ||
this.enabled = enabled; | ||
} | ||
|
||
public String getSecret() { | ||
return secret; | ||
} | ||
|
||
public void setSecret(String secret) { | ||
this.secret = secret; | ||
} | ||
|
||
public String getAccessFile() { | ||
return accessFile; | ||
} | ||
|
||
public void setAccessFile(String accessFile) { | ||
this.accessFile = accessFile; | ||
} | ||
|
||
public String getPasswordFile() { | ||
return passwordFile; | ||
} | ||
|
||
public void setPasswordFile(String passwordFile) { | ||
this.passwordFile = passwordFile; | ||
} | ||
} |
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