Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
2c2aa81
feat: move the Fleet driver and template loader from rmscep
benjamsf Oct 31, 2026
27bb427
feat: name the one phone waiting to be named
benjamsf Oct 31, 2026
f786320
feat: apply, plan and reconcile commands
benjamsf Oct 31, 2026
a0e7b10
docs: an example template for Deploy App
benjamsf Oct 31, 2026
b28e6c5
feat: hand Fleet a new window's challenge and nothing else
benjamsf Oct 31, 2026
a902b85
feat: rename a returning phone by its old name
benjamsf Nov 1, 2026
9aaa82c
fix: keep Fleet's request log out of the commands' output
benjamsf Nov 1, 2026
68a1f38
fix: compare the policy with Fleet's copy before uploading
benjamsf Nov 3, 2026
6842055
fix!: remove reconcile and --force-certificate, they lock phones out
benjamsf Nov 3, 2026
fa9b3a6
fix: refuse to replace a certificate template on a team with devices
benjamsf Nov 3, 2026
acf6d22
fix: refuse --instead-of while a device waits for a name
benjamsf Nov 3, 2026
bab0ce8
fix!: one team, no preparation team
benjamsf Nov 20, 2026
e4226a7
fix!: remove plan, it names one phone at a time
benjamsf Nov 20, 2026
6c06317
feat: list the team's phones and where each certificate is
benjamsf Nov 20, 2026
ed26928
feat: name any number of phones, and have Fleet resend their certific…
benjamsf Nov 20, 2026
512e1bc
feat: resend refused phones' certificate requests
benjamsf Nov 20, 2026
7abde94
docs: enrol into one team, name phones in any number and order
benjamsf Nov 20, 2026
fb4ab2b
fix: create a team only in apply, so a mistyped --team changes nothing
benjamsf Nov 20, 2026
4f6618e
fix: send the policy again after name and resend when a phone enrolle…
benjamsf Nov 20, 2026
9c8381e
refactor!: rename to odmdm-connector, settings to ODMDM_* and --mdm-url
benjamsf Nov 21, 2026
45a89e5
chore!: remove the docker image, the tool is installed with uv
benjamsf Nov 21, 2026
f0f55b2
ci: test on linux, windows and macos, pin actions by sha, tag and rel…
benjamsf Nov 21, 2026
736ae02
chore: bump version to 1.0.0+261121
benjamsf Nov 21, 2026
7c04f7a
docs: agent commands, version bump rule and crown jewels
benjamsf Nov 21, 2026
bb325d5
chore: ignore token files, keep the token outside the checkout
benjamsf Nov 21, 2026
2e25d09
feat!: refuse templates that hand the key out or name phones by serial
benjamsf Nov 21, 2026
caa8203
fix: require https for the MDM address
benjamsf Nov 21, 2026
643b246
fix: number name --all from 1 or more
benjamsf Nov 21, 2026
9b0eb2d
fix: read every page of a team's hosts
benjamsf Nov 21, 2026
6e93cbb
fix: say which phones were named when a batch stops
benjamsf Nov 21, 2026
c2fc411
feat: take Deploy App's ODMDM1 settings line in challenge and apply
benjamsf Nov 21, 2026
932f780
ci: release only from main
benjamsf Nov 21, 2026
12e13b5
docs: say how to install with uv
benjamsf Nov 21, 2026
9394b23
feat: state the MDM contract
benjamsf Nov 21, 2026
9695d3a
refactor: state the naming rules apart from any MDM
benjamsf Nov 21, 2026
079ed08
feat: ship the example template inside the package
benjamsf Nov 21, 2026
df7a09d
feat: put Fleet behind the MDM contract as the built-in plugin
benjamsf Nov 21, 2026
798f430
refactor: drive the MDM through its contract, chosen with --mdm and s…
benjamsf Nov 21, 2026
7ca84f6
docs: the MDM contract's layout, --set and where the token is read
benjamsf Nov 21, 2026
5eaed7c
feat: find MDM plugins through their entry points
benjamsf Nov 21, 2026
6eacd7e
feat: ship a test kit for MDM plugins
benjamsf Nov 21, 2026
e208b40
feat: get the MDM only through plugins.load, list the installed ones …
benjamsf Nov 21, 2026
64fe3fa
feat: add a demo MDM plugin as a package of its own
benjamsf Nov 21, 2026
c915a60
build: forbid starting processes, eval and exec, and fail any test th…
benjamsf Nov 21, 2026
69a19d8
ci: install the connector with the demo plugin on every OS and use it
benjamsf Nov 21, 2026
35846a7
docs: say how to add, choose and write an MDM plugin
benjamsf Nov 21, 2026
ec4fd65
chore: bump version to 1.1.0+261121
benjamsf Nov 21, 2026
2cf57bb
test: guard against process starts in every collected test, the demo'…
benjamsf Nov 21, 2026
84cf549
feat: let a plugin mark a field required or rarely changed, and a ref…
benjamsf Nov 21, 2026
3d3c382
feat: keep settings in a file and the MDM token in the system keychain
benjamsf Nov 21, 2026
700e5d8
feat: drive the connector without a command line, MDM work on one worker
benjamsf Nov 21, 2026
5b7af23
feat: serve the connector as a page on this computer
benjamsf Nov 21, 2026
1c1fa74
feat: the page's markup
benjamsf Nov 21, 2026
f4d1eaa
feat: the page's style
benjamsf Nov 21, 2026
556743e
feat: the page's behaviour
benjamsf Nov 21, 2026
ec498be
refactor: the next free number of a prefix, and a phone's words only …
benjamsf Nov 21, 2026
42b0f4b
feat: take a settings line only with a plain SCEP URL on a plain DNS …
benjamsf Nov 21, 2026
ed0c87b
feat: Fleet's id for the phone in the shipped subject, and the templa…
benjamsf Nov 21, 2026
e2bedc4
refactor: talk to Fleet with the standard library
benjamsf Nov 21, 2026
2591d46
fix: sentences from a plugin name no command, and the token's help sa…
benjamsf Nov 21, 2026
915eb2b
refactor: read the command line with the standard library, and start …
benjamsf Nov 21, 2026
4921dcd
test: drive the connector's core against the fake MDM
benjamsf Nov 21, 2026
b8c3b30
test: the page's server against the fake MDM
benjamsf Nov 21, 2026
043bd6d
test: runtime code imports only the standard library, and keyring in …
benjamsf Nov 21, 2026
dd0138c
build: keyring as the one dependency, and a coverage floor of 88%
benjamsf Nov 21, 2026
593c848
ci: build the one-file connector with the demo plugin and check that …
benjamsf Nov 21, 2026
5d4daaa
docs: the page, the keychain, the one file and the command line as th…
benjamsf Nov 21, 2026
ee8966d
docs: the rules for the page and its key, and the one dependency
benjamsf Nov 21, 2026
7b63aa5
chore: bump version to 1.2.0+261121
benjamsf Nov 21, 2026
c40293a
feat: open the page in the browser at start, through a file that keep…
benjamsf Nov 21, 2026
23f5c17
docs: the browser opens the page at start, through a file, and when i…
benjamsf Nov 21, 2026
add67ce
test: browser.py imports nothing but what opening a browser needs, as…
benjamsf Nov 21, 2026
906c062
fix: print the address and serve the page while the browser is asked,…
benjamsf Nov 21, 2026
2c7c4c2
fix: remove the page's file only when this run wrote it, not a runnin…
benjamsf Nov 21, 2026
2ebe5e6
docs: the address is on no program's command line, and two openers to…
benjamsf Nov 21, 2026
e0b48ee
fix: keep a Deploy App's name whole in the page's titles
benjamsf Nov 21, 2026
4465b87
feat: open the page when started without a command
benjamsf Nov 21, 2026
b5d1622
feat: describe the files a deployment serves, in connector.json
benjamsf Nov 21, 2026
b3104b0
build: one self-contained file per system, built with PyInstaller
benjamsf Nov 21, 2026
de0ffec
ci: build the self-contained files, start each, and gather the folder…
benjamsf Nov 21, 2026
9180d6e
docs: the file to download, how it is built, and that it is not signed
benjamsf Nov 21, 2026
5d8ab01
docs: packaging in the layout, and why every leg builds with uv's own…
benjamsf Nov 21, 2026
9bb945f
chore: bump version to 1.3.0+261122
benjamsf Nov 21, 2026
10b0023
ci: build the connector's files in a workflow of its own, called on e…
benjamsf Nov 22, 2026
b41a178
ci: attach the files to each release: one archive, its SHA-256, and e…
benjamsf Nov 22, 2026
1eae148
docs: where a release's files and checksums are, and what to compare
benjamsf Nov 22, 2026
284433f
docs: the called workflow, the release's three files, and which jobs …
benjamsf Nov 22, 2026
2fac1f4
feat: a plugin may send its policy again, and a field's default may n…
benjamsf Nov 22, 2026
cfb16d7
feat(fleet): the team named after the deployment, and a repair that m…
benjamsf Nov 22, 2026
30714e3
feat: send the policy again through the core, one job at a time
benjamsf Nov 22, 2026
17f8349
feat: Send the policy again in the page's Settings
benjamsf Nov 22, 2026
dc1e134
feat: the command line's team default follows the deployment, and a s…
benjamsf Nov 22, 2026
4b1eb0e
docs(demo): the demo plugin's group named after the deployment
benjamsf Nov 22, 2026
842669f
docs: sending the policy again, the team's default, and the five thin…
benjamsf Nov 22, 2026
490680d
chore: bump version to 1.4.0+261122
benjamsf Nov 22, 2026
cf75f64
feat(fleet): an authority per Deploy App, found by the address it serves
benjamsf Nov 22, 2026
3c7583a
feat: the shipped template names no authority, so one Fleet serves se…
benjamsf Nov 22, 2026
ad836a1
docs: several Deploy Apps on one Fleet, and who can change what there
benjamsf Nov 22, 2026
c956719
feat: challenge takes --team, as the team's template says which autho…
benjamsf Nov 22, 2026
a0f675a
docs: any MDM and the page, where comments still said Fleet and the w…
benjamsf Nov 22, 2026
9725722
fix(demo): the demo plugin needs connector 1.4, which brought what it…
benjamsf Nov 22, 2026
48042be
docs: what an MDM needs, the shortest way, and Fleet in a chapter of …
benjamsf Nov 22, 2026
2621c44
docs: the page, the files, the commands and the plugin contract as th…
benjamsf Nov 22, 2026
29e7b84
chore: bump version to 1.5.0+261122
benjamsf Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.1.0+261031"
current_version = "1.5.0+261122"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)\\+(?P<build>\\d+)"
serialize = ["{major}.{minor}.{patch}+{build}"]
search = "{current_version}"
Expand Down Expand Up @@ -30,18 +30,18 @@ search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[[tool.bumpversion.files]]
filename = "src/odmdm_fleet/__init__.py"
filename = "src/odmdm_connector/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'

[[tool.bumpversion.files]]
filename = "tests/test_odmdm_fleet.py"
filename = "tests/test_odmdm_connector.py"
search = '__version__ == "{current_version}"'
replace = '__version__ == "{new_version}"'

[[tool.bumpversion.files]]
filename = "uv.lock"
search = '''name = "odmdm-fleet"
search = '''name = "odmdm-connector"
version = "{current_version}"'''
replace = '''name = "odmdm-fleet"
replace = '''name = "odmdm-connector"
version = "{new_version}"'''
55 changes: 0 additions & 55 deletions .dockerignore

This file was deleted.

5 changes: 0 additions & 5 deletions .github/actionlint.yaml

This file was deleted.

152 changes: 152 additions & 0 deletions .github/workflows/mdm_connector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
# The mdm-connector folder Deploy App's UI serves, built once for every caller: the self-contained
# file per system and the one file for Python, each started, and connector.json, as the artifact
# mdm-connector. pull_request.yml calls it on the change, push_to_main.yml on the commit it has just tagged.
on:
workflow_call:
inputs:
ref:
description: "Commit, branch or tag to build; empty builds the commit that triggered the caller"
type: string
required: false
default: ""

permissions:
contents: read

jobs:
# The connector as one self-contained file per system, which Deploy App's MDM page offers for
# download. PyInstaller is a build tool only; the file is packed as connector.json names it. Not signed.
# Every leg builds with uv's own Python (python-build-standalone), not the runner's. On Linux the
# file needs the glibc it was built on or newer, so that leg builds in AlmaLinux 8 (glibc 2.28).
# macos-15-intel: a browser cannot tell an Intel Mac from an Apple Silicon one, so both get a file.
one-file:
name: Self-contained file (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
env:
UV_PYTHON_PREFERENCE: only-managed
UV_PYTHON: "3.12"
ALMALINUX_8: almalinux:8@sha256:768bedc30fe0a536adb0a65d2eddb7caad364e514fbddd0ae9e026975f590342
DEBIAN_11: debian:11@sha256:6f519a81440354a85eb592c5f32109ab80605f6b892455983a6f618bf87fabe9
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
- uses: pvarki/config-ci-library/.github/actions/setup-python@fffb737257f6a08b0bbd03aa8f9e090cc610e7b6 # v0.15.0+261104
with:
python-version: "3.12"
- name: Build and pack it, as README.rst says
if: runner.os != 'Linux'
run: uv run --locked --group dist python packaging/build.py
# The same command in AlmaLinux 8 with this runner's uv; the checkout is read-only in it, and copied
- name: Build and pack it on Linux, in AlmaLinux 8
if: runner.os == 'Linux'
run: |
mkdir -p dist/mdm-connector
docker run --rm -e UV_PYTHON_PREFERENCE -e UV_PYTHON -v "$PWD:/src:ro" -v "$PWD/dist/mdm-connector:/out" \
-v "$(command -v uv):/usr/local/bin/uv:ro" "$ALMALINUX_8" sh -euc '
cp -r /src /work && cd /work && rm -rf .venv build dist
uv run --locked --group dist python packaging/build.py /out'
- run: echo "VERSION=$(uv version --short)" >> "$GITHUB_ENV"
# As an operator gets it: unpacked, started with nothing but its own files, writing only into a scratch home
- name: Unpack it and prove it runs, finds Fleet and serves the page
env:
HOME: ${{ runner.temp }}/home
LOCALAPPDATA: ${{ runner.temp }}/home
XDG_CONFIG_HOME: ${{ runner.temp }}/home
run: |
mkdir -p "$HOME" "$RUNNER_TEMP/unpacked"
for packed in dist/mdm-connector/*; do
case "$packed" in
*.zip) unzip -q "$packed" -d "$RUNNER_TEMP/unpacked" ;;
*.tar.gz) tar -xzf "$packed" -C "$RUNNER_TEMP/unpacked" ;;
*.exe) cp "$packed" "$RUNNER_TEMP/unpacked/odmdm-connector.exe" ;;
esac
done
cd "$RUNNER_TEMP/unpacked"
connector=./odmdm-connector
[ -f "$connector" ] || connector=./odmdm-connector.exe
test -x "$connector"
"$connector" --version | tr -d '\r' | tee version.txt
grep -Fqx "odmdm-connector, version $VERSION" version.txt
"$connector" mdms | tr -d '\r' | tr -s ' ' | tee mdms.txt
grep -Eqx 'fleet odmdm-connector [^ ]+ built in' mdms.txt
# Fleet loads, and asks for its address
if "$connector" phones 2> phones.txt; then exit 1; fi
cat phones.txt
grep -Fq 'Fleet address is missing' phones.txt
port=$(python -c 'import socket; s = socket.socket(); s.bind(("127.0.0.1", 0)); print(s.getsockname()[1])')
"$connector" web --no-browser --port "$port" > web.txt 2>&1 &
pid=$!
for _ in $(seq 100); do grep -q 'Press Ctrl+C' web.txt && break; sleep 0.2; done
cat web.txt
curl -fsS --max-time 10 "http://127.0.0.1:$port/" -o page.html
grep -Fq '<!doctype html>' page.html
curl -fsS --max-time 10 "http://127.0.0.1:$port/app.js" -o app.js
test -s app.js
kill "$pid"
wait "$pid" || true
# The floor, proven by starting it there. The keychain loads cryptography, which --version and
# mdms never do: with a Secret Service on a session bus the page must find the keychain usable.
- name: Start it on glibc 2.28 (AlmaLinux 8, keychain included) and 2.31 (Debian 11)
if: runner.os == 'Linux'
run: |
for image in "$ALMALINUX_8" "$DEBIAN_11"; do
docker run --rm -e HOME=/tmp -v "$RUNNER_TEMP/unpacked:/c:ro" "$image" sh -euc '
ldd --version | sed -n 1p
/c/odmdm-connector --version
/c/odmdm-connector mdms | grep "built in"'
done
docker run --rm --cap-add IPC_LOCK -e HOME=/tmp -v "$RUNNER_TEMP/unpacked:/c:ro" "$ALMALINUX_8" sh -euc '
dnf -q -y install gnome-keyring dbus-daemon > /dev/null
dbus-run-session -- sh -euc "
printf x | gnome-keyring-daemon --unlock --components=secrets > /dev/null
/c/odmdm-connector web --no-browser --port 8080 > /tmp/web.txt 2>&1 &
for _ in \$(seq 100); do grep -q Ctrl+C /tmp/web.txt && break; sleep 0.2; done
kill \$!"
cat /tmp/web.txt
grep -q Ctrl+C /tmp/web.txt
if grep -q keychain /tmp/web.txt; then exit 1; fi'
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: connector-${{ runner.os }}-${{ runner.arch }}
path: dist/mdm-connector/
if-no-files-found: error

# What a deployment serves beside its UI as mdm-connector/: the four files, the one file for
# Python (README.rst, "Into a network without internet") and connector.json, as ONE artifact
mdm-connector:
name: The mdm-connector folder
needs: one-file
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.ref }}
- uses: pvarki/config-ci-library/.github/actions/setup-python@fffb737257f6a08b0bbd03aa8f9e090cc610e7b6 # v0.15.0+261104
with:
python-version: "3.12"
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: connector-*
merge-multiple: true
path: dist/mdm-connector
- name: Add the one file for Python, without the demo plugin, and write connector.json
run: |
uv build --wheel --out-dir dist
uv pip install --target build/pyz --no-deps dist/odmdm_connector-*.whl
python -m zipapp build/pyz -m "odmdm_connector.console:odmdm_connector_cli" -p "/usr/bin/env python3" -o "dist/mdm-connector/odmdm-connector-$(uv version --short).pyz"
uv run --locked python packaging/manifest.py dist/mdm-connector
cat dist/mdm-connector/connector.json
jq -e '(.files | length) == 5 and .mdms == [{"name": "fleet", "title": "Fleet"}]' dist/mdm-connector/connector.json
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: mdm-connector
path: dist/mdm-connector/
if-no-files-found: error
Loading
Loading