-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sqlproxyccl: change denylist into an access control list #98153
Merged
craig
merged 2 commits into
cockroachdb:master
from
pjtatlow:sqlproxy-access-control-list
Mar 16, 2023
Merged
sqlproxyccl: change denylist into an access control list #98153
craig
merged 2 commits into
cockroachdb:master
from
pjtatlow:sqlproxy-access-control-list
Mar 16, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pjtatlow
changed the title
sqlproxyccl: change denylist into an access control list
CC-8136: sqlproxyccl: change denylist into an access control list
Mar 7, 2023
pjtatlow
changed the title
CC-8136: sqlproxyccl: change denylist into an access control list
[CC-8136] sqlproxyccl: change denylist into an access control list
Mar 7, 2023
pjtatlow
force-pushed
the
sqlproxy-access-control-list
branch
2 times, most recently
from
March 7, 2023 20:06
205ecd1
to
c78fd0c
Compare
pjtatlow
changed the title
[CC-8136] sqlproxyccl: change denylist into an access control list
sqlproxyccl: change denylist into an access control list
Mar 7, 2023
pjtatlow
force-pushed
the
sqlproxy-access-control-list
branch
from
March 7, 2023 21:05
c78fd0c
to
865224d
Compare
jeffswenson
reviewed
Mar 8, 2023
pjtatlow
force-pushed
the
sqlproxy-access-control-list
branch
3 times, most recently
from
March 9, 2023 17:10
72a1fb5
to
202bb09
Compare
pjtatlow
force-pushed
the
sqlproxy-access-control-list
branch
from
March 9, 2023 17:31
202bb09
to
b73d22c
Compare
Part of: https://cockroachlabs.atlassian.net/browse/CC-8136 Release note: None
pjtatlow
force-pushed
the
sqlproxy-access-control-list
branch
3 times, most recently
from
March 9, 2023 19:28
2b23fa3
to
ad0a74f
Compare
jeffswenson
reviewed
Mar 16, 2023
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.
This is looking great! Once the race is fixed I'll approve the change.
pjtatlow
force-pushed
the
sqlproxy-access-control-list
branch
from
March 16, 2023 15:35
ad0a74f
to
4862c96
Compare
To support an IP Allowlist in the sqlproxy, this change extends the denylist code to make the Watcher support multiple AccessControllers. Each AccessController is consulted before allowing a connection through, and rechecked on any changes to the underlying files. The sqlproxy will also fail to start if it begins with an invalid allow or deny list, but if invalid files are written later then it increments a new error metric so we can be alerted and take action to fix it. Part of: https://cockroachlabs.atlassian.net/browse/CC-8136 Release note: None
pjtatlow
force-pushed
the
sqlproxy-access-control-list
branch
from
March 16, 2023 15:40
4862c96
to
a20ff9b
Compare
jeffswenson
approved these changes
Mar 16, 2023
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.
LGTM
TFTR! bors r+ |
Build succeeded: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To support an IP Allowlist in the sqlproxy, this change extends
the denylist code to make the Watcher support multiple AccessControllers.
Each AccessController is consulted before allowing a connection through,
and rechecked on any changes to the underlying files.
Part of: CC-8136