Skip to content
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

Add docs for protecting the documentation routes #47

Merged
merged 3 commits into from
Mar 23, 2023

Conversation

fertolg
Copy link
Contributor

@fertolg fertolg commented Mar 18, 2023

When @fastify/swagger-ui was part of @fastify/swagger there used to be documentation for protecting the documentation routes, but that wasn't transferred over when it was removed it seems.

I know I've spent a bit of time searching for how to do this, stumbling upon fastify/fastify-swagger#466 and getting confused when the docs are not there anymore in the current HEAD.

I think it would be beneficial to add this to the fastify-swagger-ui docs since it's a very common use case.

Checklist

When @fastify/swagger-ui was part of @fastify/swagger there used to be documentation for protecting the documentation routes, but that wasn't transferred over when [it was removed](fastify/fastify-swagger@f15bebd#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L689) it seems.

I know I've spent a bit of time searching for how to do this, stumbling upon fastify/fastify-swagger#466 and getting confused when the docs are not there anymore in the current HEAD.

I think it would be beneficial to add this to the fastify-swagger-ui docs since it's a very common use case.
Copy link
Collaborator

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some thoughts added.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
fertolg and others added 2 commits March 19, 2023 13:33
Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
Add a better example using constant-time comparison to prevent timing attacks
@fertolg fertolg requested review from Uzlopak, jsumners and mcollina and removed request for Uzlopak, jsumners and mcollina March 19, 2023 21:21
Copy link
Collaborator

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fertolg
Copy link
Contributor Author

fertolg commented Mar 21, 2023

@Uzlopak Thank you! Is there a process to get this merged? I can't merge the PR because I don't have write access. Apologies if this is documented somewhere, I couldn't find it in the fastify contributing docs.

@mcollina mcollina merged commit bf84b4d into fastify:master Mar 23, 2023
@fertolg fertolg deleted the patch-1 branch March 24, 2023 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants