fix queryservice integration tests related to tableacl#937
Merged
yaoshengzhe merged 1 commit intovitessio:masterfrom Jul 29, 2015
yaoshengzhe:fix_tableacl_queryservice_test
Merged
fix queryservice integration tests related to tableacl#937yaoshengzhe merged 1 commit intovitessio:masterfrom yaoshengzhe:fix_tableacl_queryservice_test
yaoshengzhe merged 1 commit intovitessio:masterfrom
yaoshengzhe:fix_tableacl_queryservice_test
Conversation
Contributor
|
That's not gonna break production, right? |
1. Deny any table access by default if tableacl does not find a ACL entry. 2. Fix queryservice integration test config file. 3. Log tableacl error only when 'queryserver-config-strict-table-acl' flag is turned on (default: off)
Contributor
Author
|
Fixed the comment. Production won't break, because the "queryserver-config-strict-table-acl" flag is set false by default (https://github.com/youtube/vitess/blob/master/go/vt/tabletserver/queryctl.go#L157). In query_executor.go, we only log and return error if that flag is turned on; Otherwise, we always return nil. |
Contributor
|
LGTM |
yaoshengzhe
added a commit
that referenced
this pull request
Jul 29, 2015
fix queryservice integration tests related to tableacl
systay
pushed a commit
to planetscale/vitess
that referenced
this pull request
Aug 19, 2022
…sio#937) * Cleanup usage of go.rice in favor of go:embed The usage of go.rice predates the availability of go:embed, but we should switch to using go:embed instead to ship specific assets like config files that we need. go.rice is also incompatible with Go 1.19 and while it might see a fix in the future, it seems better to go with the recommended Go approach that is available these days. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * Move vtctld to also use `go embed` instead of go.rice Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * Remove last rice-box related comments Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * Remove config moving This right now breaks building the actual tests since the tests might also end up loading the regular code which has a `go embed` and refers to the package with the config embeds. This doesn't mean that the config isn't properly included in the binaries. Also with using `go embed` we have a build time dependency on the files and we always know the latest is included, so we don't have the issue of potentially outdated files either. All in all, it seems simplest to remove this logic and trust that Go itself works as advertised. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
This file contains hidden or 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
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.
is turned on (default: off)