BOSH release: 2.2.2: ip.sslip.io TXT returns IP

Our documentation was wrong; our homepage said to get the origin IP
address by querying the TXT record of the root, i.e. `dig
@ns-aws.nono.io txt . +short`; however, our code worked differently: it
returned the origin IP when the `.ip` TLD was queried.

The new behavior is that it returns the origin IP when `ip.sslip.io.` is
queried, and the documentation now reflects that behavior.

Also, that behavior is marked "experimental" to give us leeway to
change.

[fixes #11]
This commit is contained in:
Brian Cunnie
2021-11-01 07:15:16 -07:00
parent e133149beb
commit eed67fdf4d
11 changed files with 122 additions and 52 deletions

View File

@@ -4,8 +4,8 @@ These instructions are meant primarily for me when deploying a new BOSH release;
they might not make sense unless you're on my workstation.
```zsh
export OLD_VERSION=2.2.0
export VERSION=2.2.1
export OLD_VERSION=2.2.1
export VERSION=2.2.2
cd ~/workspace/sslip.io
git pull -r --autostash
# update the version number for the TXT record for version.sslip.io
@@ -13,7 +13,9 @@ sed -i '' "s/$OLD_VERSION/$VERSION/g" \
bin/make_all \
bosh-release/packages/sslip.io-dns-server/packaging
# update the download instructions on the website
sed -i '' "s~/$OLD_VERSION/~/$VERSION/~g" k8s/document_root/index.html
sed -i '' "s~/$OLD_VERSION/~/$VERSION/~g" \
k8s/document_root/index.html \
k8s/Dockerfile-sslip.io-dns-server
# update the git hash for the TXT record for version.sslip.io for BOSH release
sed -i '' "s/VersionGitHash=[0-9a-fA-F]*/VersionGitHash=$(git rev-parse --short HEAD)/g" \
bosh-release/packages/sslip.io-dns-server/packaging
@@ -44,12 +46,12 @@ dig a _Acme-ChallengE.127-0-0-1.sslip.io @$IP | grep "^127"
echo "127-0-0-1.sslip.io. 604800 IN A 127.0.0.1"
dig +short sSlIp.Io
echo 78.46.204.247
dig @ns-aws.nono.io txt . +short | tr -d '"'
dig @$IP txt ip.sslip.io +short | tr -d '"'
curl curlmyip.org; echo
dig @$IP txt version.sslip.io +short | grep $VERSION
echo "\"$VERSION\""
git add -p
git ci -vm"BOSH release: 2.2.0: TXT records return IP addrs"
git ci -vm"BOSH release: 2.2.2: TXT records return IP addrs"
bosh upload-blobs
bosh create-release \
--final \