Annotate

tools/build-env/build.sh @ 13587:fdb2e0568cf8

mod_authz_internal: Make 'prosody:guest' default role for all unknown JIDs This fixes an issue where e.g. remote users or even other users on the server were unable to list MUC rooms. We want to define a permission to list MUC rooms, but we want it to be available to everyone by default (the traditional behaviour). prosody:guest is the lowest role we have. I ran a quick check and it isn't really used for anything right now that would be concerning. It was originally designed for anonymous logins. I think it's safe to treat remote JIDs as equivalent, since we have no trust relationship with anonymous users either.
author Matthew Wild <mwild1@gmail.com>
date Tue, 07 Jan 2025 14:41:32 +0000
parent 13403:0369f6986824
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13323
7bfd6db52528 tools/build-env: Tools for building and testing in a container
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 #!/bin/sh -eux
7bfd6db52528 tools/build-env: Tools for building and testing in a container
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2
7bfd6db52528 tools/build-env: Tools for building and testing in a container
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 cd "$(dirname "$0")"
7bfd6db52528 tools/build-env: Tools for building and testing in a container
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4
13403
0369f6986824 tools: Fix selection of container engine
Kim Alvefur <zash@zash.se>
parents: 13323
diff changeset
5 containerify="$(command -v podman || command -v docker)"
0369f6986824 tools: Fix selection of container engine
Kim Alvefur <zash@zash.se>
parents: 13323
diff changeset
6
0369f6986824 tools: Fix selection of container engine
Kim Alvefur <zash@zash.se>
parents: 13323
diff changeset
7 if [ -z "$containerify" ]; then
0369f6986824 tools: Fix selection of container engine
Kim Alvefur <zash@zash.se>
parents: 13323
diff changeset
8 echo "podman or docker required" >&2
0369f6986824 tools: Fix selection of container engine
Kim Alvefur <zash@zash.se>
parents: 13323
diff changeset
9 exit 1
0369f6986824 tools: Fix selection of container engine
Kim Alvefur <zash@zash.se>
parents: 13323
diff changeset
10 fi
13323
7bfd6db52528 tools/build-env: Tools for building and testing in a container
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11
7bfd6db52528 tools/build-env: Tools for building and testing in a container
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 $containerify build -f ./Containerfile --squash \
7bfd6db52528 tools/build-env: Tools for building and testing in a container
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13 --build-arg os="${2:-debian}" \
7bfd6db52528 tools/build-env: Tools for building and testing in a container
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 --build-arg dist="${1:-testing}" \
7bfd6db52528 tools/build-env: Tools for building and testing in a container
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15 -t "prosody.im/build-env:${1:-testing}"
7bfd6db52528 tools/build-env: Tools for building and testing in a container
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16