fix(docs): Correct indentation in documented example for access_policy (#3652)
Some checks failed
Integration Auth Tests / test-matrix (oauth2_token) (push) Failing after 1s
Test External Providers Installed via Module / test-external-providers-from-module (venv) (push) Has been skipped
Vector IO Integration Tests / test-matrix (push) Failing after 5s
Test External API and Providers / test-external (venv) (push) Failing after 3s
API Conformance Tests / check-schema-compatibility (push) Successful in 9s
SqlStore Integration Tests / test-postgres (3.13) (push) Failing after 17s
SqlStore Integration Tests / test-postgres (3.12) (push) Failing after 18s
Python Package Build Test / build (3.13) (push) Failing after 15s
Integration Tests (Replay) / Integration Tests (, , , client=, ) (push) Failing after 17s
Python Package Build Test / build (3.12) (push) Failing after 17s
Unit Tests / unit-tests (3.13) (push) Failing after 16s
Unit Tests / unit-tests (3.12) (push) Failing after 18s
UI Tests / ui-tests (22) (push) Successful in 44s
Pre-commit / pre-commit (push) Successful in 1m21s

`access_policy` needs to be inside the `auth` section in config; this PR
corrects indentation in a documented example of configuring that
section.
This commit is contained in:
Anastas Stoyanovsky 2025-10-03 06:19:52 -04:00 committed by GitHub
parent bcdbb53be3
commit 4dfbe46954
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -509,16 +509,16 @@ server:
provider_config: provider_config:
type: "github_token" type: "github_token"
github_api_base_url: "https://api.github.com" github_api_base_url: "https://api.github.com"
access_policy: access_policy:
- permit: - permit:
principal: user-1 principal: user-1
actions: [create, read, delete] actions: [create, read, delete]
description: user-1 has full access to all resources description: user-1 has full access to all resources
- permit: - permit:
principal: user-2 principal: user-2
actions: [read] actions: [read]
resource: model::model-1 resource: model::model-1
description: user-2 has read access to model-1 only description: user-2 has read access to model-1 only
``` ```
Similarly, the following restricts access to particular kubernetes Similarly, the following restricts access to particular kubernetes