Skip to content

Commit

Permalink
feat: add origin protection key enforcement for envoy in `lds.supabas…
Browse files Browse the repository at this point in the history
…e.yaml`
  • Loading branch information
hf committed Nov 20, 2024
1 parent 2d9d454 commit ee2bc63
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dockerhub-release-aio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
push: true
build-args: |
postgres_version=${{ needs.settings.outputs.base_docker_version }}
envoy_lds=lds.supabase.yaml
${{ needs.settings.outputs.build_args }}
target: production
tags: ${{ needs.settings.outputs.image_tag }}_${{ matrix.arch }}
Expand Down
Empty file.
4 changes: 2 additions & 2 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ postgres_major:

# Full version strings for each major version
postgres_release:
postgres15: "15.8.1.010"
postgres16: "16.3.1.016"
postgres15: "15.8.1.011"
postgres16: "16.3.1.017"

# Non Postgres Extensions
pgbouncer_release: "1.19.0"
Expand Down
5 changes: 4 additions & 1 deletion docker/all-in-one/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,12 @@ COPY docker/all-in-one/etc/gotrue.env /etc/gotrue.env

# Customizations for envoy
ARG envoy_release
ARG envoy_lds="lds.yaml"
ADD --chmod=755 --chown=envoy:envoy "https://raw.githubusercontent.com/envoyproxy/envoy/v${envoy_release}/restarter/hot-restarter.py" /opt/envoy-hot-restarter.py
COPY --chmod=775 --chown=envoy:envoy --exclude=*.supabase.yaml ansible/files/envoy_config/ /etc/envoy/
COPY --chmod=775 --chown=envoy:envoy ansible/files/envoy_config/ /etc/envoy/
COPY --chmod=755 --chown=envoy:envoy ansible/files/start-envoy.sh /opt/
RUN mv /etc/envoy/${envoy_lds} /etc/envoy/lds.yaml
RUN rm -f /etc/envoy/lds.supabase.yaml

# Customizations for kong
COPY docker/all-in-one/etc/kong/kong.conf /etc/kong/kong.conf
Expand Down

0 comments on commit ee2bc63

Please sign in to comment.