-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
strict
param to enforce RECAP_URLS for gateway
The gateway has a gaping security hole. It allows users to ls/schema on arbitrary URLs using whatever credentials the gateway host might have. This is dangerous in a cloud environment where the host might be given a service account with access to systems that end users should not have access to. It also is dangerous now that we have a FilesystemClient that allows users to read the local disk. I've fixed this by forcing the gateway to run `ls` and `schema` commands with `struct=True`. This parmater forces any URLs to be defined in the RECAP_URLS environment variable. Unknown URLs will now fail with a ValueError. I have left the CLI with `strict=False` because the users running locally should be able to query whatever they want using the credentials they have on their machine.
- Loading branch information
1 parent
55b82cc
commit fcab653
Showing
6 changed files
with
91 additions
and
39 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