-
-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected path behaviour when using management port (actuator) #1603
Comments
All the path Not sure we could propose better, unless you have any PR. |
Just for clarities sake concerning
What you are saying is that there is no (easy) way to unify Beyond that I would like what you describe to be documented in https://springdoc.org/#actuator-support (and/or https://springdoc.org/#properties ) because currently the documentation doesn't say that the prefix changes don't apply anymore. |
For the actuator You can test with latest SNAPSHOT and let me know if this is what you were expecting in terms of paths unification. |
@bnasslahsen sorry for not following up sooner here, I was swamped with work and apparently marked this notification as "read" without bothering to follow up. I just went through the changes you did. Thanks a lot, this looks like precisely what I was hoping for. |
Is your feature request related to a problem? Please describe.
When using the actuator support the OpenAPI definition and SwaggerUI pieces are hinted at to be available via the actuators
openapi
andswaggerui
, resulting in the following paths:http://localhost:8081/actuator/openapi/
http://localhost:8081/actuator/swaggerui/
A special case is described when
springdoc.use-management-port
is undefined or set to false. However, in case it is set to true I would expect that these two APIs are the only ones I actually need. The reality is that callinghttp://localhost:8081/actuator/swaggerui/
will redirect tohttp://localhost:8081/actuator/swagger-ui/index.html
– which is an altogether different path. There doesn't appear to be a way to serve everything from theswaggerui
actuator endpoint, not even when using the rewrite directives (springdoc.swagger-ui.path
andspringdoc.webjars.prefix
).The following two spring profiles behave exactly the same:
Describe the solution you'd like
I would like better documentation for the interaction between
path
properties anduse-management-port
/show-actuator
/management.endpoints.web.exposure.include
. Additionally, I would prefer if no unexpected redirect to/swagger-ui
were to happen and instead I can freely chose the actuator sub-path where the UI is offered – if possible defaulting toswaggerui
.Additional context
This question arises because when dealing with WebSecurityConfigs and (dis)allowing access to paths via e.g. ant-style matcher syntax the redirect to a third path complicates matters somewhat.
The text was updated successfully, but these errors were encountered: