-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-12013] API to run SQL query against particular DB node
Summary: Allow running SQL query againt YB DB or particular YB DB node via API. Removing OSS mode completely as it's not working properly anyway and is only checked in run_query API. The ability to run SQL query is disabled by default and should be enabled manually via runtime config (for security purposes). Test Plan: Create universe. Try to call run_query API. Make sure "API is disabled..." error is returned. Enable API via yb.security.enable_db_query_api runtime configuration flag for particular universe. Try to call run_query API few times without specifying a DB node. Make sure the query is executed against random live tserver. Try to call run_query API few times specifying a DB node. Make sure the query is executed against particular DB node. Reviewers: vbansal, cdavid, #yba-api-review! Reviewed By: vbansal, cdavid Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D31321
- Loading branch information
1 parent
639e3ef
commit 0eedfbc
Showing
18 changed files
with
175 additions
and
209 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.