Skip to content

Commit

Permalink
add initial Mapige /stac/stac resource creation
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Sep 20, 2023
1 parent 41bf891 commit db67535
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@
[Unreleased](https://github.com/bird-house/birdhouse-deploy/tree/master) (latest)
------------------------------------------------------------------------------------------------------------------

[//]: # (list changes here, using '-' for each new entry, remove this when items are added)
## Fixes

- Move initial ``stac`` service Magpie definition under its component configuration.
- Before this change, ``optional-components/stac-public-access`` was mandatory since the ``stac`` service under
Magpie was not created otherwise, leading to "*service not found*" error when requesting the ``/stac`` endpoint.
- Ensure that the first ``stac`` resource under ``stac`` service in Magpie is created by default.
Without this resource being defined initially, it is very easy to forget creating it, which would not take into
account the required ``/stac/stac`` request path to properly resolve the real endpoints where STAC API is served.

[1.31.2](https://github.com/bird-house/birdhouse-deploy/tree/1.31.2) (2023-09-13)
------------------------------------------------------------------------------------------------------------------
Expand Down
10 changes: 10 additions & 0 deletions birdhouse/components/stac/config/magpie/config.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ providers:
c4i: false
type: api
sync_type: api

permissions:
# create a default 'stac' resource under 'stac' service
# because of the '/stac/stac' path prefix required to resolve the API links properly,
# all permissions must be nested under this 'stac' resource for requests and permissions to be resolved accordingly
- service: stac
resource: /stac
permission: read
group: administrator # they already have access, just using admins to create the resource by default
action: create
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ services:
magpie:
volumes:
- ./components/stac/config/magpie/config.yml:${MAGPIE_PROVIDERS_CONFIG_PATH}/stac.yml:ro
- ./components/stac/config/magpie/config.yml:${MAGPIE_PERMISSIONS_CONFIG_PATH}/stac.yml:ro

0 comments on commit db67535

Please sign in to comment.