-
Notifications
You must be signed in to change notification settings - Fork 248
Site: Update production configuration page #1606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,23 +17,21 @@ | |
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
title: Configuring Apache Polaris (Incubating) for Production | ||
linkTitle: Deploying In Production | ||
title: Configuring Polaris for Production | ||
linkTitle: Production Configuration | ||
type: docs | ||
weight: 600 | ||
--- | ||
|
||
## Configuring Polaris for Production | ||
The default server configuration is intended for development and testing. When you deploy Polaris in production, | ||
review and apply the following checklist: | ||
- [ ] Configure OAuth2 keys | ||
- [ ] Enforce realm header validation (`require-header=true`) | ||
- [ ] Use a durable metastore (JDBC + PostgreSQL) | ||
- [ ] Bootstrap valid realms in the metastore | ||
- [ ] Disable local FILE storage | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Edit: my bad, 1566 has not been merged yet. |
||
|
||
The default server configuration is intended for development and testing. When deploying Polaris in | ||
production, there are several best practices to keep in mind. | ||
|
||
Notable configuration used to secure a Polaris deployment are outlined below. | ||
|
||
For more information on how to configure Polaris and what configuration options are available, | ||
refer to the [configuration reference page]({{% ref "configuration" %}}). | ||
|
||
### OAuth2 | ||
### Configure OAuth2 | ||
|
||
Polaris authentication requires specifying a token broker factory type. Two implementations are | ||
supported out of the box: | ||
|
@@ -209,13 +207,11 @@ curl -X POST http://localhost:8181/api/catalog/v1/oauth/tokens \ | |
-d "scope=PRINCIPAL_ROLE:ALL" | ||
``` | ||
|
||
## Other Configurations | ||
|
||
When deploying Polaris in production, consider adjusting the following configurations: | ||
|
||
#### `polaris.features."SUPPORTED_CATALOG_STORAGE_TYPES"` | ||
|
||
- By default, Polaris catalogs are allowed to be located in local filesystem with the `FILE` storage | ||
type. This should be disabled for production systems. | ||
- Use this configuration to additionally disable any other storage types that will not be in use. | ||
### Disable FILE Storage Type | ||
By default, Polaris allows using the local file system (`FILE`) for catalog storage. This is fine for testing, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
but **not recommended for production**. To disable it, set the supported storage types like this: | ||
```hocon | ||
polaris.features."SUPPORTED_CATALOG_STORAGE_TYPES" = [ "S3", "Azure" ] | ||
``` | ||
Leave out `FILE` to prevent its use. Only include the storage types your setup needs. | ||
|
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.
Uh oh!
There was an error while loading. Please reload this page.