Skip to content
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

chore: add read only force docs #152

Merged
merged 2 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions configuration/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,10 @@ export FLIPT_CORS_ALLOWED_ORIGINS="http://localhost:3000 http://localhost:3001"

### Storage

| Property | Description | Default | Since |
| ------------ | --------------------------------------------------------- | -------- | ------- |
| storage.type | The type of storage to use (database, local, git, object) | database | v1.25.0 |
| Property | Description | Default | Since |
| ----------------- | --------------------------------------------------------- | -------- | ------- |
| storage.type | The type of storage to use (database, local, git, object) | database | v1.25.0 |
| storage.read_only | Enable read-only mode for storage | false | v1.25.0 |

#### Storage Local

Expand Down
6 changes: 6 additions & 0 deletions configuration/storage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ whereas, the `git`, `object` and `oci` backends are intended for production use.

Once enabled, all filesystem backends put the Flipt API and UI into a `read-only` mode that prevents Flipt from writing to the backend. This is useful for production environments where you want to ensure that flag state is only managed via the configured backend.

<Tip>
You can also put Flipt into `read-only` mode by setting the
`FLIPT_STORAGE_READ_ONLY` environment variable to `true`, or setting
`storage.read_only` to `true` in your configuration.
</Tip>

### Local

The purpose of this backend type is to support serving Flipt flag state directly from your local filesystem.
Expand Down