Skip to content

Restrict explain to the master key #7519

Closed

Description

@mstniy

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

Activity

  1. mtrezza commented on Aug 24, 2021

    @mtrezza
    Member

    Thanks for opening this issue!

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

  2. added
    bounty:$10Bounty applies for fixing this issue (Parse Bounty Program)
    on Oct 7, 2021
  3. added
    type:featureNew feature or improvement of existing feature
    and removed on Dec 6, 2021
  4. parseplatformorg commented on Nov 8, 2025

    @parseplatformorg
    Contributor

    🎉 This change has been released in version 8.5.0-alpha.5

  5. parseplatformorg commented on Dec 1, 2025

    @parseplatformorg
    Contributor

    🎉 This change has been released in version 8.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$10Bounty applies for fixing this issue (Parse Bounty Program)state:releasedReleased as stable versionstate:released-alphaReleased as alpha versiontype:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions