-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
cv3/mirror: Fetch the most recent revision from the prefix #13923
Conversation
When a user sets up a Mirror with a restricted user that doesn't have access to the `foo` path, we will fail to get the most recent revision due to permissions issues. With this change, when a prefix is provided we will get the initial revision from the prefix rather than /foo. This allows restricted users to setup sync.
@serathius I can't think of an obvious reason why this shouldn't be a reasonable approach here. These tests should move to the common framework eventually, but I'll follow up with that seperately (as that's a larger change than is necessary to make an improvement here). |
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.
Makes sense
cc @ptabor |
|
Oh exciting - I'll take a look |
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
I expect that grpc proxy doesn't support the |
lt seems the pipeline failure is caused by this PR. |
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.
Please fix the pipeline failures.
Moved and disabled proxy tests for now - not sure what the issue is after a quick look and I'm heads down on jepsen testing. Will follow up with figuring out whatever is weird. |
Looks good for now. |
@endocrimes Please send a backport to |
When a user sets up a Mirror with a restricted user that doesn't have
access to the
foo
path, we will fail to get the most recent revisiondue to permissions issues.
With this change, when a prefix is provided we will get the initial
revision from the prefix rather than /foo. This allows restricted users
to setup sync.
Fixes #13846