Skip to content

Commit 1aee4f3

Browse files
committed
Merge branch 'master' into AGDNS-4277
2 parents c79ff54 + 758376e commit 1aee4f3

102 files changed

Lines changed: 2735 additions & 1591 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ NOTE: Add new changes BELOW THIS COMMENT.
2020

2121
### Added
2222

23+
- Bootstrap servers configuration now supports comments.
24+
2325
- New property `"language"` in `POST /control/install/check_config` and `POST /control/install/configure` HTTP APIs.
2426

2527
- The user is able to remove the static lease's hostname via the HTTP API.

bamboo-specs/release.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,29 @@
113113
114114
docker info
115115
116+
# Disable xtrace so the expanded secret values aren't printed to
117+
# the build log.
118+
set +x
119+
export GPG_KEY_PASSPHRASE="${bamboo_gpgPassword}"
120+
export GPG_SECRET_KEY="${bamboo_gpgSecretKeyPart1}${bamboo_gpgSecretKeyPart2}"
121+
export SIGNER_API_KEY="${bamboo_adguardHomeWinSignerSecretApiKey}"
122+
set -x
123+
116124
docker build \
117125
--build-arg "BASE_IMAGE=${bamboo_dockerGo}" \
118126
--build-arg "BRANCH=${bamboo_planRepository_branchName}" \
119127
--build-arg "CACHE_BUSTER=${bamboo_cacheBuster}" \
120128
--build-arg "CHANNEL=${bamboo_channel}" \
121129
--build-arg "DEPLOY_SCRIPT_PATH=./bamboo-deploy-publisher/deploy.sh" \
122-
--build-arg "GPG_SECRET_KEY=${bamboo_gpgSecretKeyPart1}${bamboo_gpgSecretKeyPart2}" \
123-
--build-arg "GPG_KEY_PASSPHRASE=${bamboo_gpgPassword}" \
124130
--build-arg "REVISION=${bamboo_repository_revision_number}" \
125131
--build-arg "SIGN=1" \
126-
--build-arg "SIGNER_API_KEY=${bamboo_adguardHomeWinSignerSecretApiKey}" \
127132
--build-arg "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" \
128133
--build-arg "VERSION=$version" \
129134
--output '.' \
130135
--progress 'plain' \
136+
--secret id=GPG_KEY_PASSPHRASE \
137+
--secret id=GPG_SECRET_KEY \
138+
--secret id=SIGNER_API_KEY \
131139
--target 'builder-exporter' \
132140
-f ./docker/ci.Dockerfile \
133141
.
@@ -151,6 +159,12 @@
151159
152160
set -e -f -u -x
153161
162+
# The version.sh script queries the current state of the git
163+
# repository, so we must explicitly checkout the revision that
164+
# triggered the build to prevent race conditions when the master
165+
# branch changes while this build is running.
166+
git checkout "${bamboo_repository_revision_number}"
167+
154168
# Install Qemu, create builder.
155169
docker version -f '{{ .Server.Experimental }}'
156170
docker buildx rm buildx-builder || :

bamboo-specs/snapcraft.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,20 @@
9898
9999
docker info
100100
101+
# Disable xtrace so the expanded secret values aren't printed to
102+
# the build log.
103+
set +x
104+
export SNAPCRAFT_STORE_CREDENTIALS="${bamboo_snapcraftMacaroonPassword}"
105+
set -x
106+
101107
docker build \
102108
--build-arg "BASE_IMAGE=${bamboo_dockerSnap}" \
103109
--build-arg "CACHE_BUSTER=${bamboo_cacheBuster}" \
104110
--build-arg "SNAPCRAFT_CHANNEL=${bamboo_snapcraftChannel}" \
105-
--build-arg "SNAPCRAFT_STORE_CREDENTIALS=${bamboo_snapcraftMacaroonPassword}" \
106111
--build-arg "VERSION=${bamboo_buildNumber}" \
107112
--output '.' \
108113
--progress 'plain' \
114+
--secret id=SNAPCRAFT_STORE_CREDENTIALS \
109115
--target 'publisher' \
110116
-f ./docker/snapcraft.Dockerfile \
111117
.

bamboo-specs/test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@
171171
172172
set -e -f -u -x
173173
174+
# The version.sh script queries the current state of the git
175+
# repository, so we must explicitly checkout the revision that
176+
# triggered the build to prevent race conditions when the master
177+
# branch changes while this build is running.
178+
git checkout "${bamboo_repository_revision_number}"
179+
174180
version="$(env CHANNEL=${bamboo_channel} sh ./scripts/make/version.sh)"
175181
readonly version
176182

client/src/__locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"blocking_mode_refused": "REFUSED: Respond with REFUSED code",
6464
"blocklist": "Blocklist",
6565
"bootstrap_dns": "Bootstrap DNS servers",
66-
"bootstrap_dns_desc": "IP addresses of DNS servers used to resolve IP addresses of the DoH/DoT resolvers you specify as upstreams. Comments are not permitted.",
66+
"bootstrap_dns_desc": "IP addresses of DNS servers used to resolve IP addresses of the DoH/DoT resolvers you specify as upstreams. Empty lines and comments, starting with '#', are ignored.",
6767
"cache_cleared": "DNS cache successfully cleared",
6868
"cache_enabled": "Enable cache",
6969
"cache_enabled_desc": "Store DNS responses locally.",

0 commit comments

Comments
 (0)