Skip to content

Commit 4303d8f

Browse files
thebengeudarora
authored andcommitted
fix: set explicit group and permissions for Envoy-related files
This avoids having to set them elsewhere.
1 parent dde4089 commit 4303d8f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

ansible/tasks/setup-envoy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
ansible.builtin.get_url:
77
checksum: "{{ envoy_release_checksum }}"
88
dest: /opt/envoy
9+
group: envoy
910
mode: u+x
1011
owner: envoy
1112
# yamllint disable-line rule:line-length
@@ -15,6 +16,7 @@
1516
ansible.builtin.get_url:
1617
checksum: "{{ envoy_hot_restarter_release_checksum }}"
1718
dest: /opt/envoy-hot-restarter.py
19+
group: envoy
1820
mode: u+x
1921
owner: envoy
2022
# yamllint disable-line rule:line-length
@@ -30,13 +32,16 @@
3032
- name: Envoy - create script to start envoy
3133
ansible.builtin.copy:
3234
dest: /opt/start-envoy.sh
35+
group: envoy
3336
mode: u+x
3437
owner: envoy
3538
src: files/start-envoy.sh
3639

3740
- name: Envoy - create configuration files
3841
ansible.builtin.copy:
3942
dest: /etc/envoy/
43+
directory_mode: u=rw,g=rw,o=r
44+
group: envoy
4045
mode: u=rw,g=rw,o=r
4146
owner: envoy
4247
src: files/envoy_config/

common.vars.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.1.0.142"
1+
postgres-version = "15.1.0.143"

docker/all-in-one/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ COPY --chown=postgrest:postgrest docker/all-in-one/etc/postgrest/generated.conf
201201
COPY docker/all-in-one/etc/gotrue.env /etc/gotrue.env
202202

203203
# Customizations for envoy
204-
COPY --chown=envoy:envoy ansible/files/envoy_config/ /etc/envoy/
204+
COPY --chmod=644 --chown=envoy:envoy ansible/files/envoy_config/ /etc/envoy/
205205

206206
# Customizations for kong
207207
COPY docker/all-in-one/etc/kong/kong.conf /etc/kong/kong.conf

0 commit comments

Comments
 (0)