-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "DPLT-1049 Revert separate user DB provisioning (#143)"
This reverts commit 858eea3.
- Loading branch information
1 parent
858eea3
commit 84bf283
Showing
12 changed files
with
712 additions
and
274 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
22 changes: 22 additions & 0 deletions
22
indexer-js-queue-handler/__snapshots__/provisioner.test.js.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Provisioner provisionUserApi formats user input before executing the query 1`] = ` | ||
[ | ||
[ | ||
"CREATE DATABASE "databaseName UNION SELECT * FROM users --"", | ||
[], | ||
], | ||
[ | ||
"CREATE USER morgs_near WITH PASSWORD 'pass; DROP TABLE users;--'", | ||
[], | ||
], | ||
[ | ||
"GRANT ALL PRIVILEGES ON DATABASE "databaseName UNION SELECT * FROM users --" TO morgs_near", | ||
[], | ||
], | ||
[ | ||
"REVOKE CONNECT ON DATABASE "databaseName UNION SELECT * FROM users --" FROM PUBLIC", | ||
[], | ||
], | ||
] | ||
`; |
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.