dump-things-service/dump_things_service/tests/assets/reference_config.yaml
Christian Monch 48697365d9
Some checks failed
Codespell / Check for spelling errors (push) Failing after 42s
Codespell / Check for spelling errors (pull_request) Failing after 42s
Ruff / Code linting (push) Successful in 51s
Ruff / Code linting (pull_request) Successful in 53s
Type annotation (PR) / check (pull_request) Failing after 1m20s
Test execution / Test-all (push) Successful in 1m27s
refactor: rename authorized_for to authorized_by
The configuration property that maps policies to
users is now called `authorized_by` to reflect
that a policy is matching and granting the
user access,
2026-10-02 08:46:39 +02:00

118 lines
3 KiB
YAML

pid: dump_things:config
type: collections
version: 2
collections:
collection_1:
schema: http://example.com/schema
curated: curated/collection_1
incoming: incoming/collection_1
default_token: test_default_token
ignore_classes: []
use_classes: []
audit_backends:
- auto_flush_timeout: 2
path: /tmp/audit_store0
type: gitaudit
auth_sources:
- type: config
- type: forgejo
url: http://example.com/forgejo1/api/v1
organization: example_org
team: team_1
label_type: user
instance_id: forgejo-instance_1
- type: forgejo
url: http://example.com/forgejo2/api/v1
organization: example_org
team: team_2
label_type: user
instance_id: forgejo-instance_2
- type: config
backend:
mapping_method: digest-md5
type: record_dir+stl
policy_mapping:
- auth_source: config
user_id: test_user_1
authorized_by:
- https://examples.com/policy_example_0
- abc:policy_abc
- auth_source: forgejo-instance_1
user_id: test_user_f1_u1
authorized_by:
- https://examples.com/policy_example_1
- abc:policy_abc
- auth_source: forgejo-instance_2
user_id: test_user_f2_u1
authorized_by:
- https://examples.com/policy_example_2
- abc:policy_abc
submission_tags:
submission_time_tag: http://semanticscience.org/resource/SIO_001083
submitter_id_tag: http://purl.obolibrary.org/obo/NCIT_C54269
tokens:
Test 00000 (NOTHING):
collections:
collection_1:
incoming_label: modes
mode: NOTHING
hashed: false
representation: token_1_ooooo
user_id: test_user_1_nothing
Test 00X00 (SUBMIT_ONLY):
collections:
collection_1:
incoming_label: modes
mode: SUBMIT_ONLY
hashed: false
representation: token_1_ooxoo
user_id: test_user_1_submit_only
Test 0X000 (READ_SUBMISSIONS):
collections:
collection_1:
incoming_label: modes
mode: READ_SUBMISSIONS
hashed: false
representation: token_1_oxooo
user_id: test_user_1_read_submissions
Test 0XX00 (WRITE_SUBMISSIONS):
collections:
collection_1:
incoming_label: modes
mode: WRITE_SUBMISSIONS
hashed: false
representation: token_1_oxxoo
user_id: test_user_1_write_submissions
Test Curator Token:
collections:
collection_1:
incoming_label: admin_1
mode: CURATOR
hashed: false
representation: token_curator
user_id: test_curator
Test Hashed Token:
collections:
collection_1:
incoming_label: token-hashed-1
mode: WRITE_COLLECTION
hashed: false
representation: token-hashed
user_id: test_hashed
test_default_token:
collections:
collection_1:
incoming_label: ''
mode: READ_CURATED
hashed: false
representation: basic_access
user_id: basic_access_user
admin_tokens: {}