-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
expose new build-in swagger api UI #1944
Comments
Also
|
hide it would not make a difference as api is public documented anyway - we are a opensource project and follow good security practices 😆 (not security by obscurity) ... anyway disable it is a valid suggestion |
Agreed. I didn't mean "security by obscurity", because you still need to authenticate to be able to use it anyway. But many apps allow you to run it on a different path, so only company staff knows about it, which avoids bots finding it and hammering your APIs. They discover the API endpoints through swagger. Personally, I am just going to disable it in production. It's an unnecessary risk once the server is tested and working. |
fix point 1 from #1944 Co-authored-by: qwerty287 <[email protected]>
added apart from the redirect (which seems to be not really necessary). |
e.g. https://ci.woodpecker-ci.org/swagger/index.html
<rootURL>/swagger/*
to itThe text was updated successfully, but these errors were encountered: