-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new documentation site for DataHub (#327)
- Loading branch information
Showing
102 changed files
with
8,252 additions
and
3,518 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,58 @@ | ||
**/yarn.lock -diff | ||
*.lock text -diff | ||
package-lock.json text -diff | ||
|
||
# Graphics | ||
*.ai binary | ||
*.bmp binary | ||
*.eps binary | ||
*.gif binary | ||
*.gifv binary | ||
*.ico binary | ||
*.jng binary | ||
*.jp2 binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.jpx binary | ||
*.jxr binary | ||
*.pdf binary | ||
*.png binary | ||
*.psb binary | ||
*.psd binary | ||
# SVG treated as an asset (binary) by default. | ||
*.svg text | ||
# If you want to treat it as binary, | ||
# use the following line instead. | ||
# *.svg binary | ||
*.svgz binary | ||
*.tif binary | ||
*.tiff binary | ||
*.wbmp binary | ||
*.webp binary | ||
|
||
# Audio | ||
*.kar binary | ||
*.m4a binary | ||
*.mid binary | ||
*.midi binary | ||
*.mp3 binary | ||
*.ogg binary | ||
*.ra binary | ||
|
||
# Video | ||
*.3gpp binary | ||
*.3gp binary | ||
*.as binary | ||
*.asf binary | ||
*.asx binary | ||
*.fla binary | ||
*.flv binary | ||
*.m4v binary | ||
*.mng binary | ||
*.mov binary | ||
*.mp4 binary | ||
*.mpeg binary | ||
*.mpg binary | ||
*.ogv binary | ||
*.swc binary | ||
*.swf binary | ||
*.webm binary |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,82 +14,6 @@ | |
limitations under the License. | ||
--> | ||
|
||
# Contributing | ||
## Thanks for taking the time to contribute! | ||
|
||
First off, thanks for taking the time to contribute! This guide will answer | ||
some common questions about how this project works. | ||
|
||
While this is a Pinterest open source project, we welcome contributions from | ||
everyone. | ||
|
||
## Code of Conduct | ||
|
||
Please be sure to read and understand our [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md). | ||
We work hard to ensure that our projects are welcoming and inclusive to as many | ||
people as possible. | ||
|
||
## Reporting Issues | ||
|
||
If you have a bug report, please provide as much information as possible so that | ||
we can help you out: | ||
|
||
- Version of the project you're using. | ||
- Code (or even better whole projects) which reproduce the issue. | ||
- Steps which reproduce the issue. | ||
- Screenshots, GIFs or videos (if relavent). | ||
- Stack traces for crashes. | ||
- Any logs produced. | ||
|
||
## Fixing Bugs | ||
|
||
We welcome and appreciate anyone for fixing bugs! | ||
- You can fix bugs as per "Making Changes" and send for code review! | ||
|
||
## Adding New Features | ||
|
||
We welcome and appreciate anyone for adding new features for DataHub! | ||
Following is the current process: | ||
- Please create a GitHub issue proposing your new feature, including what and why. It can be brief, one or two paragraphs is ok. | ||
- The project maintainers will then approve the new feature proposal. | ||
- You can then briefly describe your intended technical design for the new feature. | ||
- The project maintainers will then approve the technical design and/or request changes. | ||
- Then you can implement the new feature as per "Making Changes" and send for code review! | ||
|
||
## Making Changes | ||
|
||
Please first check "Fixing Bugs" or "Adding New Features" as appropriate. | ||
|
||
1. Create a new branch off of master. (We can't currently enable forking while the repo is in private beta) | ||
2. Make your changes and verify that tests pass | ||
3. Commit your work and push to origin your new branch | ||
4. Submit a pull request to merge to master | ||
5. Ensure your code passes both linter and unit tests | ||
6. Participate in the code review process by responding to feedback | ||
|
||
Once there is agreement that the code is in good shape, one of the project's | ||
maintainers will merge your contribution. | ||
|
||
To increase the chances that your pull request will be accepted: | ||
|
||
- Follow the coding style | ||
- Write tests for your changes | ||
- Write a good commit message | ||
|
||
## Help | ||
|
||
Start by reading the developer starter guide [this guide](docs/developer_guide/developer_setup.md) to setup DataHub/ | ||
If you're having trouble using this project, please check the [developer guides](docs/developer_guide/) | ||
and searching for solutions in the existing open and closed issues. | ||
|
||
You can also reach out to us at [email protected] or on our [Slack](https://join.slack.com/t/datahubchat/shared_invite/zt-dpr988af-9VwGkjcmPhqTmRoA2Tm3gg). | ||
|
||
## Security | ||
|
||
If you've found a security issue in one of our open source projects, | ||
please report it at [Bugcrowd](https://bugcrowd.com/pinterest); you may even | ||
make some money! | ||
|
||
## License | ||
|
||
By contributing to this project, you agree that your contributions will be | ||
licensed under its [license](LICENSE). | ||
Please checkout the [guide on contribution](docs/contributing/overview.md) before you start. |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
id: sharing_and_security | ||
title: Sharing & Security | ||
sidebar_label: Sharing & Security | ||
--- | ||
|
||
To understand how security & access restrictions work, let's first go over the core entities of DataHub. They are: | ||
|
||
- Environments | ||
- DataDocs | ||
- Tables & Schemas | ||
- Metastore | ||
- Query Engines | ||
- Query Executions | ||
|
||
All of these entities can be connected to each other as a tree where the environment is the root node. All DataDocs are required to be inside a single environment whereas query engines have many to many relationships with environments. Each query engine can belong to a single metastore, and every metastore is associated with 0 or more tables/schemas. Last, each query execution must belong to a query engine. | ||
|
||
When checking if a user has access to a certain entity in DataHub, DataHub would walk up the tree all the way to environments. Since there are many to many relationships, an entity may be related to multiple environments. If the user can access any one of them, then they can access the entity. | ||
|
||
The granularity of access can be configured further with environment configs. Currently, here are all the options to configure an Environment in DataHub: | ||
|
||
- Public | ||
- Hidden | ||
- Shareable | ||
|
||
A public environment means anyone who has access to the DataHub tool can access this environment. To only allow certain users to access the environment, you need to change the environment to private and add users one by one to the environment ACL. This can be done either in the Admin UI manually or through a dynamic script that runs automatically via the jobs plugin. | ||
|
||
A hidden environment means that the user would not see the environment if they do not have access to it. Sometimes, it is useful to turn that option off to let the user know an environment exists, but they do not have access to it. | ||
|
||
The shareable option is the most complex environment configuration for DataHub. By default, all DataDocs created in an environment is a public DataDoc, so all users who can access that environment can view the DataDoc. Similarly, all users in that environment can access all query executions associated with that environment. The shareable option is on by default as it simplifies the number of operations required to share a DataDoc or a query execution with someone else. If the shareable option is turned off, then all DataDocs created within an environment would be private by default, and query executions can only be viewed by the user who executed it or anyone who has access to the DataDoc that contains the execution. The owner can still invite others to view by either sharing the DataDoc/execution manually. | ||
|
||
:::note | ||
For a public DataDoc, users cannot edit it unless they are invited with edit permission. Furthermore, DataDocs in a shareable environment can still be converted to private so they are not accessible to the public. | ||
::: | ||
|
||
As a footnote, searching for DataDocs' access permission is verified at the environment level, searching for Tables is verified at the metastore level, and searching for users is available to all users on DataHub. Both public/private DataDocs can be searched, but the user would only see search results that they have access to. |
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.