diff --git a/docs/releases/console-3.1.29.md b/docs/releases/console-3.1.29.md new file mode 100644 index 0000000..88c6c3a --- /dev/null +++ b/docs/releases/console-3.1.29.md @@ -0,0 +1,5 @@ +# Console 3.1.29 — update domain migration + +- Install shared Git delivery with git.iomatex.com as its canonical HTTPS host. +- Normalize legacy saved hosts in stage checks and package downloads; retain exact-host trust, TLS verification, pinned commits and checksums. +- Bootstrap defaults to git.iomatex.com; legacy installer URLs and virtual APT paths remain accepted. diff --git a/docs/releases/stage-itscreen-1.0.34.md b/docs/releases/stage-itscreen-1.0.34.md new file mode 100644 index 0000000..bfb8f0e --- /dev/null +++ b/docs/releases/stage-itscreen-1.0.34.md @@ -0,0 +1,7 @@ +# stage_itscreen 1.0.34 — EVAx10 5.1.44 + +- Publish Debian ARM64 client from the common release source in release-provenance.json. +- Shared Git delivery normalizes saved git.it-screen.com sources to git.iomatex.com before HTTPS requests. +- Existing virtual APT addresses remain readable; new APT sources use git.iomatex.com. +- Registration, device identity, media and schedules are preserved. +- If the old domain is already blocked, use the new-domain bootstrap once to install this delivery owner. diff --git a/install_iomatex_edge.sh b/install_iomatex_edge.sh index 46c47f4..7e0ac93 100755 --- a/install_iomatex_edge.sh +++ b/install_iomatex_edge.sh @@ -4,7 +4,7 @@ set -Eeuo pipefail [[ ${EUID:-$(id -u)} -eq 0 ]] || exec sudo -E bash "$0" "$@" export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export DEBIAN_FRONTEND=noninteractive -GIT_URL=${IOMATEX_GIT_URL:-https://git.it-screen.com/An-J/Iomatex_OS.git} +GIT_URL=${IOMATEX_GIT_URL:-https://git.iomatex.com/An-J/Iomatex_OS.git} GIT_BRANCH=${IOMATEX_GIT_BRANCH:-ci-cd} CHECKOUT_DIR=${IOMATEX_GIT_DIR:-/userdata/Iomatex_OS} STAGES=stage_env,stage_wifi,stage_mqtt,stage_ui,stage_avahi,stage_cockpit,stage_itscreen,stage_reverse_tunnels diff --git a/local_installer.sh b/local_installer.sh index 82bc174..f087558 100755 --- a/local_installer.sh +++ b/local_installer.sh @@ -34,7 +34,7 @@ POST_REBOOT_UNIT_PATH="/etc/systemd/system/${POST_REBOOT_UNIT}" POST_REBOOT_AUTOSTART="iomatex-local-installer-post-reboot.desktop" POST_REBOOT_AUTOSTART_PATH="/etc/xdg/autostart/${POST_REBOOT_AUTOSTART}" -IOMATEX_GIT_URL="${IOMATEX_GIT_URL:-https://git.it-screen.com/An-J/Iomatex_OS.git}" +IOMATEX_GIT_URL="${IOMATEX_GIT_URL:-https://git.iomatex.com/An-J/Iomatex_OS.git}" IOMATEX_GIT_BRANCH="${IOMATEX_GIT_BRANCH:-ci-cd}" IOMATEX_GIT_DIR="${IOMATEX_GIT_DIR:-/opt/iomatex/Iomatex_OS}" IOMATEX_GIT_TOKEN="${IOMATEX_GIT_TOKEN:-}" @@ -206,7 +206,7 @@ Behavior: - stops on first stage failure Git defaults: - - IOMATEX_GIT_URL=https://git.it-screen.com/An-J/Iomatex_OS.git + - IOMATEX_GIT_URL=https://git.iomatex.com/An-J/Iomatex_OS.git - IOMATEX_GIT_BRANCH=ci-cd - IOMATEX_GIT_DIR=/opt/iomatex/Iomatex_OS EOF @@ -1427,7 +1427,7 @@ else SOURCE_COMMIT="" else if [[ "$USE_GIT_SOURCE" -eq 1 ]]; then - [[ "$GIT_URL" == https://git.it-screen.com/* ]] || die "Only our Git is allowed" + [[ ( "$GIT_URL" == https://git.iomatex.com/* || "$GIT_URL" == https://git.it-screen.com/* ) && "$GIT_URL" != *'@'* && "$GIT_URL" != *'?'* && "$GIT_URL" != *'#'* ]] || die "Only our Git is allowed" die "Use install_iomatex_edge.sh to update the lightweight snapshot; full Git clones on Edge are disabled" else PROJECT_DIR="$SCRIPT_DIR" diff --git a/offline/git_delivery.py b/offline/git_delivery.py index 1219a38..b7ca250 100644 --- a/offline/git_delivery.py +++ b/offline/git_delivery.py @@ -26,13 +26,14 @@ import urllib.error import urllib.parse import urllib.request -HOST = 'git.it-screen.com' -ALLOWED_HOSTS = (HOST, 'git.iomatex.com') +HOST = 'git.iomatex.com' +ALLOWED_HOSTS = (HOST, 'git.it-screen.com') def git_host(value=HOST): if value not in ALLOWED_HOSTS: raise ValueError('Unsupported Git host') - return value + # Normalize legacy saved credentials/snapshots before any network request. + return HOST STATE = Path('/var/lib/iomatex/packages') AUTH = Path('/etc/iomatex/git-credentials.json') @@ -424,7 +425,7 @@ def activate(root): CACHE.mkdir(parents=True, exist_ok=True) (CACHE / 'partial').mkdir(exist_ok=True) apt = Path('/etc/apt') - (apt / 'iomatex-offline.list').write_text('deb [trusted=yes] iomatex://git.it-screen.com/ ./\n') + (apt / 'iomatex-offline.list').write_text('deb [trusted=yes] iomatex://git.iomatex.com/ ./\n') (apt / 'apt.conf.d/99iomatex-offline').write_text( 'Dir::Etc::sourcelist "/etc/apt/iomatex-offline.list";\n' 'Dir::Etc::sourceparts "-";\n' @@ -475,7 +476,7 @@ def message(code, fields): def apt_key(uri, objects): u = urllib.parse.urlparse(uri) - if u.scheme != 'iomatex' or u.netloc != HOST or u.query or u.fragment: + if u.scheme != 'iomatex' or u.netloc not in ALLOWED_HOSTS or u.query or u.fragment: raise ValueError('Unsupported APT source') # APT's method protocol may already decode the URI displayed by apt-get. # Preserve literal %3a in Git filenames; never decode it twice into an epoch colon. diff --git a/offline/test_git_delivery.py b/offline/test_git_delivery.py index e7c0191..4ee55c6 100644 --- a/offline/test_git_delivery.py +++ b/offline/test_git_delivery.py @@ -17,14 +17,14 @@ class DeliveryTest(unittest.TestCase): with patch.object(d.urllib.request, 'build_opener') as opener: d.open_git('An-J/Iomatex_OS', 'branches/ci-cd', {'username': 'u', 'password': 'p', 'host': host}) request = opener.return_value.open.call_args.args[0] - self.assertEqual('https://' + host + '/api/v1/repos/An-J/Iomatex_OS/branches/ci-cd', request.full_url) + self.assertEqual('https://git.iomatex.com/api/v1/repos/An-J/Iomatex_OS/branches/ci-cd', request.full_url) for host in ['evil.example', 'git.iomatex.com.evil', 'user@git.iomatex.com', 'git.iomatex.com:443']: with self.assertRaises(ValueError): d.open_git('An-J/Iomatex_OS', 'branches/ci-cd', {'username': 'u', 'password': 'p', 'host': host}) def test_package_download_uses_persisted_host(self): data = b'package' - config = {'host': 'git.iomatex.com', 'repo': 'An-J/Iomatex_OS', 'commit': 'a'*40, + config = {'host': 'git.it-screen.com', 'repo': 'An-J/Iomatex_OS', 'commit': 'a'*40, 'objects': {'debian/a.deb': {'path': 'third_party/a.deb', 'sha256': hashlib.sha256(data).hexdigest()}}} with tempfile.TemporaryDirectory() as folder, patch.object(d, 'open_git', return_value=io.BytesIO(data)) as request: d.download_object(config, 'debian/a.deb', Path(folder)/'a.deb', {'username': 'u', 'password': 'p'}) @@ -130,7 +130,8 @@ class DeliveryTest(unittest.TestCase): key='debian/xserver-common_2%3a1.0+deb11_all.deb' objects={key:{}} for path in [key, 'debian/xserver-common_2%253a1.0%2bdeb11_all.deb']: - self.assertEqual(key,d.apt_key('iomatex://git.it-screen.com/'+path,objects)) + for host in d.ALLOWED_HOSTS: + self.assertEqual(key,d.apt_key('iomatex://'+host+'/'+path,objects)) def test_unchanged_snapshot_file_is_reused_without_network(self): with tempfile.TemporaryDirectory() as folder: diff --git a/stage-releases.json b/stage-releases.json index 7aee35b..a45896a 100644 --- a/stage-releases.json +++ b/stage-releases.json @@ -14,7 +14,7 @@ "version": "1.0.1" }, "stage_ui": { - "version": "3.1.28" + "version": "3.1.29" }, "stage_avahi": { "version": "1.0.0" @@ -23,7 +23,7 @@ "version": "1.0.0" }, "stage_itscreen": { - "version": "1.0.33" + "version": "1.0.34" }, "stage_reverse_tunnels": { "version": "1.0.2" diff --git a/stage_itscreen/itscreen b/stage_itscreen/itscreen index fd730bd..5c0d662 100755 Binary files a/stage_itscreen/itscreen and b/stage_itscreen/itscreen differ diff --git a/stage_itscreen/itscreen.sha256 b/stage_itscreen/itscreen.sha256 index 0a853a3..50fe56c 100644 --- a/stage_itscreen/itscreen.sha256 +++ b/stage_itscreen/itscreen.sha256 @@ -1 +1 @@ -52d018fe3580f903d7b46fd94bb22d8c88aa321156107eb66998926a218ffcc1 itscreen +d74970623d228c8a262bcae847924aeb3ba175bc720d3a0ad62085438d60e69d itscreen diff --git a/stage_itscreen/itscreen.version b/stage_itscreen/itscreen.version index 581c9b9..11f8a82 100644 --- a/stage_itscreen/itscreen.version +++ b/stage_itscreen/itscreen.version @@ -1 +1 @@ -5.1.42 +5.1.44 diff --git a/stage_itscreen/release-provenance.json b/stage_itscreen/release-provenance.json index b1c43c9..c3e88a2 100644 --- a/stage_itscreen/release-provenance.json +++ b/stage_itscreen/release-provenance.json @@ -1,14 +1,14 @@ { "schema_version": 1, - "client_version": "5.1.42", - "stage_version": "1.0.33", + "client_version": "5.1.44", + "stage_version": "1.0.34", "platform": "linux", "architecture": "arm64", - "source_repository": "https://git.it-screen.com/Development/It-screenClient.git", + "source_repository": "https://git.iomatex.com/Development/It-screenClient.git", "source_branch": "iomatex_dev", - "source_commit": "c75170b64ccff88b0a80edf9e21d1382960c9834", + "source_commit": "a400da33cbf1cec919b500e6ff721d43de90110f", "binary": "itscreen", - "sha256": "52d018fe3580f903d7b46fd94bb22d8c88aa321156107eb66998926a218ffcc1", - "assembly_method": "Clean release cross-build from git archive; Debian 11 ARM64 Qt 5.15.2 sysroot; ldd and executable version verified on ARM64 bench", - "native_version_code": 5010042 + "sha256": "d74970623d228c8a262bcae847924aeb3ba175bc720d3a0ad62085438d60e69d", + "assembly_method": "Clean release cross-build from git archive; Debian 11 ARM64 Qt 5.15.2 sysroot", + "native_version_code": 5010044 } diff --git a/stage_itscreen/version.json b/stage_itscreen/version.json index c13a102..750400a 100644 --- a/stage_itscreen/version.json +++ b/stage_itscreen/version.json @@ -1,3 +1,3 @@ { - "version": "1.0.33" + "version": "1.0.34" } diff --git a/stage_ui/version.json b/stage_ui/version.json index c5cb0f3..7d26b1e 100644 --- a/stage_ui/version.json +++ b/stage_ui/version.json @@ -1,3 +1,3 @@ { - "version": "3.1.28" + "version": "3.1.29" }