-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move STAC service Magpie definition under its component (#383)
## Overview Move STAC service definitions under `components/stac` configuration. ## Changes **Non-breaking changes** - 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. - Remove `optional-components/stac-public-access` dependency under `optional-components/all-public-access` to avoid indirectly enforcing `components/stac` when `optional-components/all-public-access` is enabled. Users that desire using `optional-components/stac-public-access` will have to add it explicitly to the list of `EXTRA_CONF_DIRS`. - Rename `optional-components/stac-public-access/config/magpie/config.yml.template` to `optional-components/stac-public-access/config/magpie/permissions.cfg` in order to align with permissions-specific contents as accomplished with other components. **Breaking changes** - n/a ## Related Issue / Discussion - Relates to #382
- Loading branch information
Showing
9 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
config/magpie/config.yml | ||
config/proxy/conf.extra-service.d/stac.conf | ||
config/canarie-api/canarie_api_monitoring.py |
19 changes: 19 additions & 0 deletions
19
birdhouse/components/stac/config/magpie/config.yml.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
providers: | ||
# definition of STAC service for API access | ||
stac: | ||
url: http://stac:8000 | ||
title: STAC | ||
public: true | ||
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 |
5 changes: 5 additions & 0 deletions
5
birdhouse/components/stac/config/magpie/docker-compose-extra.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
config/magpie/config.yml | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...-access/config/magpie/config.yml.template → ...blic-access/config/magpie/permissions.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters