gnodet-bot commented on code in PR #29425:
URL: https://github.com/apache/camel/pull/29425#discussion_r4507615533


##########
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")

Review Comment:
   **Previous suggestion — not yet applied.** Drop the `enums` attribute: 
Camel's codegen derives it from `JwtAlgorithm.values()` automatically. This 
hardcoded string is what caused the original RSA drift and will cause it again 
if a new constant is ever added to the enum without updating the annotation.
   
   ```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]

Reply via email to