-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat(cloud): add shared-instance flag in limit superflag in alpha #7770
Conversation
0ee97a1
to
a135f6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks good to me but we need tests. @NamanJain8 create a docker compose file with the cloud flag and then try to run login/create user, etc on that dgraph cluster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some early comments. Haven't looked at the rest of the PR yet.
Reviewable status: 0 of 13 files reviewed, 4 unresolved discussions (waiting on @NamanJain8 and @vvbalaji-dgraph)
dgraph/cmd/alpha/run.go, line 262 at r4 (raw file):
String()) flag.String("cloud", worker.CloudDefaults, z.NewSuperFlagHelp(worker.CloudDefaults).
how about put this in the "limit" flag?
dgraph/cmd/alpha/run.go, line 264 at r4 (raw file):
flag.String("cloud", worker.CloudDefaults, z.NewSuperFlagHelp(worker.CloudDefaults). Head("Dgraph cloud options"). Flag("disable-non-galaxy",
probably don't need this. Unless you think the cloud flag would grow to many options. I reckon it's just for "shared-instance" users of the cloud.
So, perhaps limit=shared-instance=true
, which would then automatically disable a bunch of things.
testutil/multi_tenancy.go, line 347 at r4 (raw file):
func Export(t *testing.T, token *HttpToken, dest, accessKey, secretKey string) *GraphQLResponse { exportRequest := `mutation export($dst: String!, $f: String!, $access: String!, $secret: String!){
100 chars.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get @ahsanbarkati's review as well.
5350554
to
f9ebd4c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 14 files reviewed, 3 unresolved discussions (waiting on @manishrjain and @vvbalaji-dgraph)
dgraph/cmd/alpha/run.go, line 262 at r4 (raw file):
Previously, manishrjain (Manish R Jain) wrote…
how about put this in the "limit" flag?
Done.
dgraph/cmd/alpha/run.go, line 264 at r4 (raw file):
Previously, manishrjain (Manish R Jain) wrote…
probably don't need this. Unless you think the cloud flag would grow to many options. I reckon it's just for "shared-instance" users of the cloud.
So, perhaps
limit=shared-instance=true
, which would then automatically disable a bunch of things.
Done.
testutil/multi_tenancy.go, line 347 at r4 (raw file):
Previously, manishrjain (Manish R Jain) wrote…
100 chars.
Done.
I have addressed the above comments.
) This PR adds a shared-instance flag to --limit superflag. When set to true (false by default), it will: - Restrict access to any of the ACL operations like Login, add/remove/update user from non-galaxy namespaces. - Prevent the leaking of environment variables for minio and aws. (cherry picked from commit 5f3cece)
) (#7778) This PR adds a shared-instance flag to --limit superflag. When set to true (false by default), it will: - Restrict access to any of the ACL operations like Login, add/remove/update user from non-galaxy namespaces. - Prevent the leaking of environment variables for minio and aws. (cherry picked from commit 5f3cece)
) (#7778) This PR adds a shared-instance flag to --limit superflag. When set to true (false by default), it will: - Restrict access to any of the ACL operations like Login, add/remove/update user from non-galaxy namespaces. - Prevent the leaking of environment variables for minio and aws. (cherry picked from commit 5f3cece) (cherry picked from commit eeb7bea)
) (#7778) This PR adds a shared-instance flag to --limit superflag. When set to true (false by default), it will: - Restrict access to any of the ACL operations like Login, add/remove/update user from non-galaxy namespaces. - Prevent the leaking of environment variables for minio and aws. (cherry picked from commit 5f3cece) (cherry picked from commit eeb7bea)
) (#7778) This PR adds a shared-instance flag to --limit superflag. When set to true (false by default), it will: - Restrict access to any of the ACL operations like Login, add/remove/update user from non-galaxy namespaces. - Prevent the leaking of environment variables for minio and aws. (cherry picked from commit 5f3cece) (cherry picked from commit eeb7bea) (cherry picked from commit ed657d5)
) (#7778) This PR adds a shared-instance flag to --limit superflag. When set to true (false by default), it will: - Restrict access to any of the ACL operations like Login, add/remove/update user from non-galaxy namespaces. - Prevent the leaking of environment variables for minio and aws. (cherry picked from commit 5f3cece) (cherry picked from commit eeb7bea) (cherry picked from commit ed657d5)
) This PR adds a shared-instance flag to --limit superflag. When set to true (false by default), it will: - Restrict access to any of the ACL operations like Login, add/remove/update user from non-galaxy namespaces. - Prevent the leaking of environment variables for minio and aws. (cherry picked from commit 5f3cece)
) This PR adds a shared-instance flag to --limit superflag. When set to true (false by default), it will: - Restrict access to any of the ACL operations like Login, add/remove/update user from non-galaxy namespaces. - Prevent the leaking of environment variables for minio and aws. (cherry picked from commit 5f3cece)
author Anurag <[email protected]> 1620201646 +0530 committer Anurag <[email protected]> 1675852162 +0530 parent d3bf7b7 author Anurag <[email protected]> 1620201646 +0530 committer Anurag <[email protected]> 1675851671 +0530 feat(cloud): add shared-instance flag in limit superflag in alpha (#7770) This PR adds a shared-instance flag to --limit superflag. When set to true (false by default), it will: - Restrict access to any of the ACL operations like Login, add/remove/update user from non-galaxy namespaces. - Prevent the leaking of environment variables for minio and aws. (cherry picked from commit 5f3cece)
) (#8625) This PR adds a shared-instance flag to --limit superflag. When set to true (false by default), it will: - Restrict access to any of the ACL operations like Login, add/remove/update user from non-galaxy namespaces. - Prevent the leaking of environment variables for minio and aws. (cherry picked from commit 5f3cece)
This PR adds a
shared-instance
flag to--limit
superflag.When set to true (false by default), it will:
Login
, add/remove/update user from non-galaxy namespaces.This change is