-
Hello, We've build some test endpoints, and we're trying to secure them by either basic auth or api key. We can see some options regarding the security in the Karavan, but whatever we do, endpoints are not secured. Can you please guide us on how this is intended to be used? How we can enable basic auth for our endpoints? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Camel REST DSL itself does not have these features. Karavan is just a Visual DSL for Camel, so it provides the same functionality. |
Beta Was this translation helpful? Give feedback.
-
Just to clarify the "security" stuff in the image above is ONLY for defining the OpenAPI contract for the Rest DSL you design. Camel Rest DSL has the capability to generate a swagger doc (openapi spec) from Camel (code first). Any kind of actual security is configured in the embedded HTTP server you use (spring boot http server, quarkus http server etc). How to do that, you look at their docs. There is a Camel SB ssl example at |
Beta Was this translation helpful? Give feedback.
-
If you're looking for out-of-the-box REST API authentication and authorization, consider exploring the Talisman Platform. It comes with an API Gateway (built using the platform) that provides JWT support (generation, authentication, authorization) along with API user management capabilities. |
Beta Was this translation helpful? Give feedback.
-
@mgubaidullin @davsclaus thanks for your help so far. It looks like Karavan is using platform-http as per default. I've found following guide on how to secure endpoints: https://camel.apache.org/components/4.4.x/others/platform-http-vertx.html#_vertxplatformhttpserver Do you know where should we put that configuration in Karavan integrations? Thanks |
Beta Was this translation helpful? Give feedback.
Just to clarify the "security" stuff in the image above is ONLY for defining the OpenAPI contract for the Rest DSL you design. Camel Rest DSL has the capability to generate a swagger doc (openapi spec) from Camel (code first).
Any kind of actual security is configured in the embedded HTTP server you use (spring boot http server, quarkus http server etc). How to do that, you look at their docs.
There is a Camel SB ssl example at
https://github.com/apache/camel-spring-boot-examples/tree/main/http-ssl