Skip to content

Commit

Permalink
feat: Pfx change pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenzo-ingenito committed Dec 12, 2024
1 parent 6d97b45 commit eef4290
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public Map<String, Object> producerConfigs() {
props.put("sasl.login.callback.handler.class", CustomAuthenticateCallbackHandler.class);
props.put("kafka.oauth.tenantId", kafkaPropCFG.getTenantId());
props.put("kafka.oauth.appId", kafkaPropCFG.getAppId());
props.put("kafka.oauth.pfxName", kafkaPropCFG.getPfxName());
props.put("kafka.oauth.pfxPathName", kafkaPropCFG.getPfxPathName());
props.put("kafka.oauth.pwd", kafkaPropCFG.getPwd());
}

Expand Down Expand Up @@ -164,7 +164,7 @@ public Map<String, Object> producerWithoutTransactionConfigs() {
props.put("sasl.login.callback.handler.class", CustomAuthenticateCallbackHandler.class);
props.put("kafka.oauth.tenantId", kafkaPropCFG.getTenantId());
props.put("kafka.oauth.appId", kafkaPropCFG.getAppId());
props.put("kafka.oauth.pfxName", kafkaPropCFG.getPfxName());
props.put("kafka.oauth.pfxPathName", kafkaPropCFG.getPfxPathName());
props.put("kafka.oauth.pwd", kafkaPropCFG.getPwd());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public class KafkaPropertiesCFG {
@Value("${kafka.oauth.appId}")
private String appId;

@Value("${kafka.oauth.pfxName}")
private String pfxName;
@Value("${kafka.oauth.pfxPathName}")
private String pfxPathName;

@Value("${kafka.oauth.pwd}")
private String pwd;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ kafka.properties.ssl.truststore.password=${TRUST_JKS_PASSWORD}
kafka.properties.request.timeout.ms=
kafka.oauth.tenantId=${TENANT_ID}
kafka.oauth.appId=${APP_ID}
kafka.oauth.pfxName=${PFX_NAME_RESOURCE_PATH}
kafka.oauth.pfxPathName=${PFX_NAME_RESOURCE_PATH}
kafka.oauth.pwd=${PWD}
####### KAFKA PRODUCER SETTINGS ################
kafka.producer.client-id=springboot-gtw-dispatcher
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<producerConfig>sasl.login.callback.handler.class=it.finanze.sanita.fse2.ms.gtw.dispatcher.config.kafka.oauth2.CustomAuthenticateCallbackHandler</producerConfig>
<producerConfig>kafka.oauth.tenantId=${kafka.oauth.tenantId}</producerConfig>
<producerConfig>kafka.oauth.appId=${kafka.oauth.appId}</producerConfig>
<producerConfig>kafka.oauth.pfxName=${kafka.oauth.pfxName}</producerConfig>
<producerConfig>kafka.oauth.pfxName=${kafka.oauth.pfxPathName}</producerConfig>
<producerConfig>kafka.oauth.pwd=${kafka.oauth.pwd}</producerConfig>
<springProfile name="default">
<producerConfig>ssl.truststore.location=${kafka.properties.ssl.truststore.location}
Expand Down

0 comments on commit eef4290

Please sign in to comment.