gnodet-bot commented on code in PR #29425:
URL: https://github.com/apache/camel/pull/29425#discussion_r4507571392
##########
components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConfiguration.java:
##########
@@ -57,7 +57,7 @@ public class GrpcConfiguration {
@UriParam(label = "security", defaultValue = "NONE", enums =
"NONE,GOOGLE,JWT")
private GrpcAuthType authenticationType = GrpcAuthType.NONE;
- @UriParam(label = "security", defaultValue = "HMAC256", enums =
"HMAC256,HMAC384,HMAC512,RSA256,RSA384,RSA512")
+ @UriParam(label = "security", defaultValue = "HMAC256", enums =
"HMAC256,HMAC384,HMAC512")
private JwtAlgorithm jwtAlgorithm = JwtAlgorithm.HMAC256;
Review Comment:
💡 **Suggestion:** Drop the redundant `enums` attribute — Camel's codegen
derives it from the Java enum type automatically. This hardcoded string was the
root cause of the stale RSA entries:
```suggestion
@UriParam(label = "security", defaultValue = "HMAC256")
```
--
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]