Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.3.1 #138

Merged
merged 22 commits into from
Dec 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
d0f4c08
Bump stac-fastapi-extensions from 2.4.1 to 2.4.3
dependabot[bot] Nov 30, 2022
f81bf42
Bump stac-fastapi-types from 2.4.1 to 2.4.3
dependabot[bot] Nov 30, 2022
1d6437b
Bump stac-fastapi-api from 2.4.1 to 2.4.3
dependabot[bot] Nov 30, 2022
7f366eb
Merge pull request #104 from ASFHyP3/dependabot/pip/stac-fastapi-type…
jtherrmann Dec 8, 2022
d172bc0
Merge branch 'dependabot/pip/stac-fastapi-api-2.4.3' into dependabot/…
jtherrmann Dec 8, 2022
7d832f8
Merge pull request #103 from ASFHyP3/dependabot/pip/stac-fastapi-exte…
jtherrmann Dec 8, 2022
8166902
bump pgstac version
jtherrmann Dec 8, 2022
7bb8494
remove pygeofilter pin
jtherrmann Dec 8, 2022
9b52cc2
Merge pull request #105 from ASFHyP3/dependabot/pip/stac-fastapi-api-…
jtherrmann Dec 8, 2022
778633e
Bump mangum from 0.16.0 to 0.17.0
dependabot[bot] Dec 8, 2022
b27951e
Merge pull request #124 from ASFHyP3/dependabot/pip/mangum-0.17.0
jtherrmann Dec 8, 2022
31b7af4
disable transaction endpoints for public API
jtherrmann Dec 9, 2022
4f4017d
update changelog
jtherrmann Dec 9, 2022
c72d93a
Bump boto3 from 1.26.21 to 1.26.26
dependabot[bot] Dec 9, 2022
c7fac1d
Merge pull request #137 from ASFHyP3/dependabot/pip/boto3-1.26.26
asjohnston-asf Dec 9, 2022
9bcad87
Bump cfn-lint from 0.72.1 to 0.72.2
dependabot[bot] Dec 9, 2022
1269cc1
Merge pull request #134 from ASFHyP3/remove-transactions
jtherrmann Dec 9, 2022
97c322e
Merge pull request #135 from ASFHyP3/dependabot/pip/cfn-lint-0.72.2
jtherrmann Dec 9, 2022
f1242d5
Bump pypgstac[psycopg] from 0.6.10 to 0.6.11
dependabot[bot] Dec 9, 2022
3d4f9d2
Merge pull request #136 from ASFHyP3/dependabot/pip/pypgstac-psycopg-…
jtherrmann Dec 9, 2022
9e4d856
Remove Filter extension
jtherrmann Dec 9, 2022
618e238
Merge pull request #140 from ASFHyP3/disable-filter
jtherrmann Dec 9, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.1]
### Security
- Removed Transaction endpoints from the publicly available API, though create/update/delete permissions were already
restricted at the database layer.

## [0.3.0]
### Added
- Created a STAC item collection for the `glo-30-hand` dataset.
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pypgstac-load:
run-api:
POSTGRES_HOST_READER=${db_host} POSTGRES_HOST_WRITER=${db_host} POSTGRES_PORT=5432 \
POSTGRES_DBNAME=postgres POSTGRES_USER=postgres POSTGRES_PASS=${db_admin_password} \
ENABLED_EXTENSIONS=${enabled_extensions} \
python -m stac_fastapi.pgstac.app

test:
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,18 @@ Run:
make run-api db_host=<host> db_admin_password=<password>
```

You can also append an `enabled_extensions=<list>` argument, where `<list>` is the list of extensions
that gets passed to the `pgstac` app via the `ENABLED_EXTENSIONS` environment variable, as described
in the docstring for the
[module](https://github.com/stac-utils/stac-fastapi/blob/master/stac_fastapi/pgstac/stac_fastapi/pgstac/app.py).

You should see something like `Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)` in the output; you can
query the API at that URL.

You can confirm that the Transaction extension is enabled by opening the local API URL in a web browser
and appending `/api.html` to open the Swagger UI. You should see various create/update/delete endpoints
under the "Transaction Extension" heading. You should be able to successfully query these endpoints via
the local API, but not via the publicly available API. (TODO: after removing those endpoints completely
from the public API, update this paragraph to reflect that they will no longer appear in the Swagger UI.)
under the "Transaction Extension" heading. These endpoints should not appear in the Swagger UI for the
publicly available API.

## Upgrading the database

Expand Down
12 changes: 11 additions & 1 deletion apps/api/src/api.py
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
from stac_fastapi.pgstac.app import handler # noqa: F401
import os

os.environ['ENABLED_EXTENSIONS'] = ','.join([
'query',
'sort',
'fields',
'pagination',
'context',
])

from stac_fastapi.pgstac.app import handler # noqa: F401, E402
11 changes: 5 additions & 6 deletions requirements-apps-api.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
mangum==0.16.0
pygeofilter==0.2.0
stac-fastapi.api==2.4.1
stac-fastapi.extensions==2.4.1
stac-fastapi.pgstac==2.3.0
stac-fastapi.types==2.4.1
mangum==0.17.0
stac-fastapi.api==2.4.3
stac-fastapi.extensions==2.4.3
stac-fastapi.pgstac==2.4.3
stac-fastapi.types==2.4.3
2 changes: 1 addition & 1 deletion requirements-run-codebuild.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
boto3==1.26.21
boto3==1.26.26
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
-r requirements-apps-api.txt
-r requirements-run-codebuild.txt
./lib/asf-stac-util/
boto3==1.26.21
cfn-lint==0.72.1
boto3==1.26.26
cfn-lint==0.72.2
flake8==6.0.0
pypgstac[psycopg]==0.6.10
pypgstac[psycopg]==0.6.11
pystac==1.6.1
pytest==7.2.0
requests==2.28.1
Expand Down