oscerd commented on code in PR #29829:
URL: https://github.com/apache/camel/pull/29829#discussion_r4583814719
##########
test-infra/camel-test-infra-spiffe/src/main/java/org/apache/camel/test/infra/spiffe/services/SpiffeLocalContainerInfraService.java:
##########
@@ -155,6 +178,51 @@ private void doInitialize() {
LOG.info("SPIRE Workload API available at {}", socketPath);
}
+ String agentConfiguration() {
+ try (var input =
getClass().getClassLoader().getResourceAsStream(AGENT_CONF_RESOURCE)) {
+ if (input == null) {
+ throw new IllegalStateException("Missing SPIRE agent
configuration");
+ }
+ // Restarting a process must retain its node key, rather than try
to reuse a consumed join token.
+ String configuration = new String(input.readAllBytes(),
StandardCharsets.UTF_8);
+ if (workloadSvidTtl.equals(Duration.ofHours(1)) &&
caTtl.equals(Duration.ofHours(24))) {
Review Comment:
Done in (459ff17e70c6): `DEFAULT_WORKLOAD_SVID_TTL` and `DEFAULT_CA_TTL` are
named once and used by both constructors and by the KeyManager guard.
_Claude Code on behalf of oscerd_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]