Skip to content

Restrict explain to the master key #7519

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

Open
3 tasks done
mstniy opened this issue Aug 24, 2021 · 1 comment
Open
3 tasks done

Restrict explain to the master key #7519

mstniy opened this issue Aug 24, 2021 · 1 comment
Labels
bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) type:feature New feature or improvement of existing feature

Comments

@mstniy
Copy link
Contributor

mstniy commented Aug 24, 2021

New Feature / Enhancement Checklist

Current Limitation

Currently, any user is able to run a query with the explain parameter and obtain the raw result returned by MongoDB. This discloses too much information to the clients, nor is it of great utility to them.

Feature / Enhancement Description

The use of the explain parameter should be restricted to the master key. We can use the deprecator to shift to the new behavior gradually.

Example Use Case

n/a

Alternatives / Workarounds

n/a

3rd Party References

n/a

@mtrezza
Copy link
Member

mtrezza commented Aug 24, 2021

Thanks for opening this issue!

Makes sense to me, would you want to open a PR for this?

@mtrezza mtrezza added the bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) label Oct 7, 2021
@mtrezza mtrezza added type:feature New feature or improvement of existing feature and removed type:improvement labels Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) type:feature New feature or improvement of existing feature
Projects
None yet
Development

No branches or pull requests

2 participants