Skip to content

[BREAKING] feat(Enterprise): GraphQL schema get/update, Dgraph schema query/alter and /login are now admin operations #5786

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

Merged
merged 10 commits into from
Jul 3, 2020

Conversation

abhimanyusinghgaur
Copy link
Contributor

@abhimanyusinghgaur abhimanyusinghgaur commented Jul 1, 2020

Fixes #GRAPHQL-494.

Please refer this discuss post: https://discuss.dgraph.io/t/authentication-for-admin-endpoints/6786

Breaking change: Whitelist IPs set via the --whitelist flag now apply to schema Alter commands.


This change is Reviewable

Docs Preview: Dgraph Preview

@github-actions github-actions bot added area/enterprise Related to proprietary features area/graphql Issues related to GraphQL support on Dgraph. labels Jul 1, 2020
@abhimanyusinghgaur abhimanyusinghgaur changed the title feat(Enterprise): GraphQL schema get/update and dgraph schema query/alter now have standard auth feat(Enterprise): GraphQL schema get/update, Dgraph schema query/alter and /login are now admin operations Jul 2, 2020
Copy link
Contributor

@pawanrawal pawanrawal left a comment

Choose a reason for hiding this comment

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

On second thoughts, schema{} query should not have IP whitelisting. Otherwise play.dgraph.io aslo won't be able to work. Users should be able to see dgraphs schema but not update it if their IP is not whitelisted.

We'll need to check that docs and getGQLSchema/updateGQLSchema operations at graphql.dgraph.io work after this change.

Reviewed 16 of 16 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @manishrjain, @MichaelJCompton, and @vvbalaji-dgraph)

Copy link
Contributor Author

@abhimanyusinghgaur abhimanyusinghgaur left a comment

Choose a reason for hiding this comment

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

Removed IP whitelisting and Poorman's auth for schema query.

Reviewable status: 15 of 16 files reviewed, all discussions resolved (waiting on @manishrjain, @MichaelJCompton, @pawanrawal, and @vvbalaji-dgraph)

@abhimanyusinghgaur abhimanyusinghgaur merged commit 30fb625 into master Jul 3, 2020
@abhimanyusinghgaur abhimanyusinghgaur deleted the abhimanyu/ip-whitelisting branch July 3, 2020 11:14
abhimanyusinghgaur added a commit that referenced this pull request Jul 6, 2020
…r and /login are now admin operations (#5786)

Fixes #GRAPHQL-494.

Please refer this discuss post: https://discuss.dgraph.io/t/authentication-for-admin-endpoints/6786

(cherry picked from commit 30fb625)

# Conflicts:
#	dgraph/cmd/alpha/mutations_mode/docker-compose.yml
#	systest/bgindex/docker-compose.yml
abhimanyusinghgaur added a commit that referenced this pull request Jul 8, 2020
…r and /login are now admin operations (#5786) (#5833)

* feat(Enterprise): GraphQL schema get/update, Dgraph schema query/alter and /login are now admin operations (#5786)

Fixes #GRAPHQL-494.

Please refer this discuss post: https://discuss.dgraph.io/t/authentication-for-admin-endpoints/6786

(cherry picked from commit 30fb625)

# Conflicts:
#	dgraph/cmd/alpha/mutations_mode/docker-compose.yml
#	systest/bgindex/docker-compose.yml
arijitAD pushed a commit that referenced this pull request Jul 14, 2020
…r and /login are now admin operations (#5786)

Fixes #GRAPHQL-494.

Please refer this discuss post: https://discuss.dgraph.io/t/authentication-for-admin-endpoints/6786
abhimanyusinghgaur added a commit to dgraph-io/tutorial that referenced this pull request Jul 16, 2020
`/alter` now has IP whitelisting with this PR: hypermodeinc/dgraph#5786.
So, need to update tour for the same.
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 18, 2020
@danielmai danielmai changed the title feat(Enterprise): GraphQL schema get/update, Dgraph schema query/alter and /login are now admin operations [BREAKING] feat(Enterprise): GraphQL schema get/update, Dgraph schema query/alter and /login are now admin operations Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/enterprise Related to proprietary features area/graphql Issues related to GraphQL support on Dgraph.
Development

Successfully merging this pull request may close these issues.

2 participants