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 f34519d commit b11474d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 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
3 changes: 3 additions & 0 deletions 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 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 b11474d

Please sign in to comment.