Skip to content

Commit ae11019

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/update-default-endpoints
2 parents aa96681 + 58d05ea commit ae11019

22 files changed

+900
-418
lines changed

.github/workflows/deploy-mkdocs.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/docs.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout main
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python 3.11
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: 3.11
20+
21+
- uses: astral-sh/setup-uv@v4
22+
with:
23+
enable-cache: true
24+
25+
- name: Test docs
26+
run: uv run --extra docs mkdocs build --strict
27+
28+
deploy:
29+
name: Deploy
30+
runs-on: ubuntu-latest
31+
if: github.ref_name == 'main'
32+
steps:
33+
- name: Checkout main
34+
uses: actions/checkout@v4
35+
36+
- name: Set up Python 3.11
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: 3.11
40+
41+
- uses: astral-sh/setup-uv@v4
42+
with:
43+
enable-cache: true
44+
45+
- name: Deploy docs
46+
run: uv run --extra docs mkdocs gh-deploy --force

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
---
77

8+
[![PyPI - Version][pypi-version-badge]][pypi-link]
9+
[![GHCR - Version][ghcr-version-badge]][ghcr-link]
10+
[![GHCR - Size][ghcr-size-badge]][ghcr-link]
11+
812
STAC Auth Proxy is a proxy API that mediates between the client and your internally accessible STAC API to provide flexible authentication, authorization, and content-filtering mechanisms.
913

1014
> [!IMPORTANT]
@@ -21,3 +25,15 @@ STAC Auth Proxy is a proxy API that mediates between the client and your interna
2125
- **🧩 Authentication Extension:** Add the [Authentication Extension](https://github.com/stac-extensions/authentication) to API responses to expose auth-related metadata
2226
- **📘 OpenAPI Augmentation:** Enhance the [OpenAPI spec](https://swagger.io/specification/) with security details to keep auto-generated docs and UIs (e.g., [Swagger UI](https://swagger.io/tools/swagger-ui/)) accurate
2327
- **🗜️ Response Compression:** Optimize response sizes using [`starlette-cramjam`](https://github.com/developmentseed/starlette-cramjam/)
28+
29+
## Documentation
30+
31+
[Full documentation is available on the website](https://developmentseed.org/stac-auth-proxy).
32+
33+
Head to [Getting Started](https://developmentseed.org/stac-auth-proxy/user-guide/getting-started/) to dig in.
34+
35+
[pypi-version-badge]: https://badge.fury.io/py/stac-auth-proxy.svg
36+
[pypi-link]: https://pypi.org/project/stac-auth-proxy/
37+
[ghcr-version-badge]: https://ghcr-badge.egpl.dev/developmentseed/stac-auth-proxy/latest_tag?color=%2344cc11&ignore=latest&label=image+version&trim=
38+
[ghcr-size-badge]: https://ghcr-badge.egpl.dev/developmentseed/stac-auth-proxy/size?color=%2344cc11&tag=latest&label=image+size&trim=
39+
[ghcr-link]: https://github.com/developmentseed/stac-auth-proxy/pkgs/container/stac-auth-proxy

docs/architecture/data-filtering.md

Lines changed: 0 additions & 195 deletions
This file was deleted.

docs/architecture/filtering-data.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Filtering Data
2+
3+
> [!NOTE]
4+
>
5+
> For more information on using filters to solve authorization needs, more information can be found in the [user guide](../user-guide/record-level-auth.md).
6+
7+
## Example Request Flow for multi-record endpoints
8+
9+
```mermaid
10+
sequenceDiagram
11+
Client->>Proxy: GET /collections
12+
Note over Proxy: EnforceAuth checks credentials
13+
Note over Proxy: BuildCql2Filter creates filter
14+
Note over Proxy: ApplyCql2Filter applies filter to request
15+
Proxy->>STAC API: GET /collection?filter=(collection=landsat)
16+
STAC API->>Client: Response
17+
```
18+
19+
## Example Request Flow for single-record endpoints
20+
21+
The Filter Extension does not apply to fetching individual records. As such, we must validate the record _after_ it is returned from the upstream API but _before_ it is returned to the user:
22+
23+
```mermaid
24+
sequenceDiagram
25+
Client->>Proxy: GET /collections/abc123
26+
Note over Proxy: EnforceAuth checks credentials
27+
Note over Proxy: BuildCql2Filter creates filter
28+
Proxy->>STAC API: GET /collection/abc123
29+
Note over Proxy: ApplyCql2Filter validates the response
30+
STAC API->>Client: Response
31+
```

docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../CHANGELOG.md

docs/installation-and-running.md

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)