dump-things-service/dump_things_service/tests/assets
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christian Monch 95594660fd feat: move policy info out of configuration
This commit removes the configuration keys:

- default_policy
- policy_annotation_tag
- policy_mapping

and adds the key:

- policy_info_location

The key `policy_info_location` optionally contain
a URL from which policy information is read.

The commit also adds the endpoint

GET /management/reload/policy_info/{collection}

The endpoint allows to reload policy information
from either the configured location of from a
location given in the query-parameter `url`.

The endpoint requires a CURATOR-token.

Policy information is a JSON-representation
of a `dump-things-service.abstract_config.PolicyInfo`
object. For example:

{
  "default_policy": "abc:policy_abc",
  "policy_annotation_tag": "https://example.org/dumpthings/policy_set",
  "policy_mapping": [
    {
      "auth_source": "config",
      "user_id": "user_all",
      "authorized_by": [
        "abc:policy_abc",
        "policy_1"
      ]
    },
    {
      "auth_source": "some_other_source",
      "user_id": "test_user_2",
      "authorized_by": [
        "https://examples.com/policy_example_2",
        "abc:policy_def"
      ]
    }
  ]
}
2026-10-02 13:30:43 +02:00
..
policy_info.json feat: move policy info out of configuration 2026-10-02 13:30:43 +02:00
reference_config.yaml feat: move policy info out of configuration 2026-10-02 13:30:43 +02:00
schema-ifabsent-error.yaml patch LinkML's ifabsent handling, add regression test 2025-12-15 13:37:46 +01:00
schema-merged.yaml support fully merged schemas 2025-10-09 09:51:59 +02:00
schema-subclass-id-error.yaml add a regression test for linkml issue #2600 2025-12-17 21:24:54 +01:00