Ticket: TECH-607
Purpose: Internal SFTP endpoint for Boomi to drop and pick up serialized inventory files, staying entirely inside the BoxHouse network (no public IP).
Status: Core build complete and verified end-to-end (2026-07-21).
Update — 2026-08-19: This VM now runs a second, separate SFTP service (SFTPGo) alongside the original OpenSSH one documented below, and it now has a public IP (allowlisted by firewall). The "no public IP" statements in Sections 1–2 describe the original OpenSSH/Boomi service, which is still internal-only. For the new inspection-report service and the current network picture, see Section 10 — SFTPGo Layer (Vendor Inspection Reports) at the bottom of this page.
Boomi needs a place to read and write files as part of the serialized-inventory integration. Rather than use Azure's native Blob Storage SFTP (a PaaS option), this was built as a self-hosted SFTP VM. The self-hosted approach was chosen for full control — per-user chroot jails, arbitrary directory layout, and the ability to run scripts on the box if needed — and to fit the broader strategy of a self-managed estate inside the existing Entra tenant.
The tradeoff, worth stating plainly: we own the OS. Patching, hardening, and uptime are ours, not Azure's. That's an accepted cost given how much custom integration plumbing runs through this stack.
The server has no public IP. All access is over the internal virtual network. Boomi's Atom runtime, which sits on a second VM in the same network, reaches it privately.
| Component | Value |
|---|---|
| Virtual network | BoxHouseInternal-vnet (10.10.0.0/16) |
| SFTP subnet | sftp-subnet (10.10.0.0/24) |
| Gateway subnet | GatewaySubnet — reserved for the future VPN gateway (Phase 6, not yet built) |
| VM | Private IP | Role |
|---|---|---|
boxhouse-sftp-vm |
10.10.0.4 | The SFTP server. No public IP. Resource group BoxHouseIT. Standard_D2s_v3, Ubuntu 24.04, 32 GB data disk (Premium_LRS). Admin user: sftpadmin. |
boxhouse-atom-vm |
10.10.0.5 | Boomi Atom runtime. Connects to the SFTP VM over the internal VNet. |
Boomi Atom (boxhouse-atom-vm, 10.10.0.5)
|
| authenticated SFTP over private VNet
v
SFTP server (boxhouse-sftp-vm, 10.10.0.4)
|
v
/data/sftp/<user>/ ← chroot jail, contains /inbound and /processed
Configured at first boot via cloud-init. The cloud-init applied:
/data (the 32 GB Premium disk), keeping SFTP data off the OS diskssh and fail2ban services runningEach user is jailed to their own folder under /data/sftp. Inside the jail they see two folders:
/inbound — files land here to be picked up/processed — files moved here after handlingImportant path distinction: the host path is /data/sftp/inbound, but because the user is chrooted, everything is jail-relative. In Boomi (and for the users themselves), the path is just /inbound — not /data/sftp/inbound. Using the host path in a Boomi operation will fail to find the directory.
| Account | Key type | How created |
|---|---|---|
boomi |
RSA 4096 (PEM format) | Service account. PEM format is required for Boomi's SFTP V2 connector compatibility. |
haylee |
ed25519 | Generated in Azure Cloud Shell |
adam |
ed25519 | Generated locally on Adam's machine |
clint |
ed25519 | Generated locally on Clint's machine |
Public keys live on the box at /etc/ssh/authorized_keys/<username>.
Why RSA-PEM for
boomibut ed25519 for people: Boomi's SFTP V2 connector needs the private key in PEM format, and RSA is the safe choice there. For interactive human logins, the box's OpenSSH accepts ed25519 fine, and it's the cleaner modern default. Don't "standardize" the human accounts onto theboomikey format — they're intentionally different.
boxhouse-atom-vmboxhouse-sftp-vm (10.10.0.4) over the internal VNetboomi account using its private key, stored encrypted in the connection component (RSA 4096, PEM)| Setting | Value |
|---|---|
| Action | Read |
| Object | File |
| Remote Directory | /inbound (jail-relative — see path note above) |
| Action After Read | None |
"Action After Read: None" means reading a file does not delete or move it. This is why the test file could be read repeatedly. If/when this becomes a production flow, decide deliberately whether files should be moved to
/processedor deleted after a successful read, so the same file isn't picked up on every run.
The process deploy was blocked for a while by a Standard (Test) connector license shortage — the pool was at zero free and the deploy failed with "exceeded by 1." The fix was not to buy a license: retiring an unused local runtime (BoxHouse_AdamR.localdomain) freed the seat it was holding, and that license reattached cleanly to the SFTP runtime's environment.
Takeaway for future builds: before assuming you need to purchase a connector license, check whether an idle or retired runtime is holding one. Freeing it is often the whole fix.
This is the exact procedure used to onboard Adam, Clint, and Haylee. Two halves: the user produces a key on their own machine, then you install it in Azure.
Send them these steps (whichever OS applies):
Mac / Linux:
# Check for an existing key first:
cat ~/.ssh/id_ed25519.pub
# If "No such file or directory", generate one:
ssh-keygen -t ed25519
# Press Enter through ALL prompts — file location, passphrase, confirm.
# (The passphrase prompt shows nothing as you type; leave it blank.)
# Then print the public key and send that line:
cat ~/.ssh/id_ed25519.pub
Windows (PowerShell):
Get-Content ~\.ssh\id_ed25519.pub
# If it errors, generate first:
ssh-keygen -t ed25519
# Press Enter through all prompts, then re-run Get-Content.
They send you the single line beginning with ssh-ed25519 .... A public key is safe to send over email or chat — it's useless without the matching private key, which never leaves their machine. Never accept or ask for a private key.
Two gotchas seen during onboarding:
Replace USERNAME and the key text with the real values:
az vm run-command invoke \
--resource-group BoxHouseIT \
--name boxhouse-sftp-vm \
--command-id RunShellScript \
--scripts "echo 'ssh-ed25519 AAAA...THEIR_KEY... user@host' > /etc/ssh/authorized_keys/USERNAME; echo '--- result ---'; ls -l /etc/ssh/authorized_keys/USERNAME; cat /etc/ssh/authorized_keys/USERNAME"
Using > (overwrite) preserves the file's existing owner and permissions, so sshd's StrictModes check stays happy. A clean result looks like:
ls -l shows -rw-r--r-- root rootThis readout prints the first chunk of each account's key file — no changes made:
az vm run-command invoke \
--resource-group BoxHouseIT \
--name boxhouse-sftp-vm \
--command-id RunShellScript \
--scripts "for u in haylee adam clint boomi; do echo \"=== \$u ===\"; head -c 40 /etc/ssh/authorized_keys/\$u 2>/dev/null || echo '(no file)'; echo; done"
A real key shows an ssh-ed25519 or ssh-rsa prefix. A line like # Replace this line with... means that account is still on its placeholder and needs a key.
This is the human side — how Adam and Clint actually log in and move files. They don't touch Boomi; they just connect over SFTP with the key they generated during onboarding.
This is the important one.
boxhouse-sftp-vmhas no public IP — it lives only on the internal VNet (10.10.0.4). You cannot reach it directly from a laptop sitting on the open internet or a home connection. You must first be on a network that routes intoBoxHouseInternal-vnet.As of this writing, the VPN gateway (Phase 6) is not yet built, so remote access from a personal machine is not yet possible. Once the VPN gateway is live (or if you are already on an office network that peers with the VNet), the steps below work. If a connection attempt just hangs or times out, this is almost always the cause — you are not on the network, not a key or account problem.
10.10.0.422 (default)adam or clint.pub you sent Haylee). No password.inbound and processed. You cannot see other users' folders or the rest of the server — that's the chroot jail working as intended.sftp adam@10.10.0.4
Swap adam for clint as appropriate. If the key isn't picked up automatically, point at it explicitly:
sftp -i ~/.ssh/id_ed25519 adam@10.10.0.4
Once connected, useful commands:
ls # list files in the current folder
cd inbound # move into the inbound folder
put localfile.csv # upload a file from your machine
get remotefile.csv # download a file to your machine
bye # disconnect
Any SFTP client works. Common picks: WinSCP (Windows), Cyberduck (Mac/Windows), or FileZilla (both). Configure a new connection with:
| Field | Value |
|---|---|
| Protocol | SFTP |
| Host | 10.10.0.4 |
| Port | 22 |
| Username | adam or clint |
| Password | (leave blank) |
| Key file | select your private key ~/.ssh/id_ed25519 (in WinSCP, this is under Advanced → SSH → Authentication) |
Then connect and drag files between your machine and the inbound / processed folders.
The very first time you connect you'll get a prompt about an unknown host key / fingerprint — that's normal for a first connection. Accept it to continue; it won't ask again on that machine.
boxhouse-atom-vm) — this is what gives the process the internal VNet path to the SFTP box.A passing test: no red X on any shape, document count of 1 (it found the file), and the document data matches the file's contents. Because Action After Read is None, the test file stays in place and the test is repeatable.
Complete and verified (2026-07-21):
test.txt from /inbound over the private VNet)Remaining:
GatewaySubnet is already reserved for it.| Thing | Value |
|---|---|
| SFTP server VM | boxhouse-sftp-vm @ 10.10.0.4 |
| Boomi Atom VM | boxhouse-atom-vm @ 10.10.0.5 |
| Resource group | BoxHouseIT |
| VNet / subnet | BoxHouseInternal-vnet / sftp-subnet |
| SFTP accounts | haylee, adam, clint, boomi |
| Key file location | /etc/ssh/authorized_keys/<user> |
| Jail root | /data/sftp/<user> |
| Folders (jail-relative) | /inbound, /processed |
| Boomi operation | Read / File / /inbound / Action After Read: None |
| VM admin user | sftpadmin |
Ticket: TECH-763
Purpose: Let external inspection vendors (WEINSPECT, WUHU) upload inspection-report PDFs, which get auto-ingested and written to the Salesforce home record by serial number.
Status: SFTP path built and proven end-to-end (2026-08-19). Vendor accounts, auto-ingest trigger, and TLS still to do — see 10.9.
Read this first. The same VM (boxhouse-sftp-vm, 10.10.0.4) now hosts two independent SFTP services for two different jobs. Don't confuse them.
| Service A — OpenSSH (original) | Service B — SFTPGo (new) | |
|---|---|---|
| Ticket | TECH-607 | TECH-763 |
| Software | Native OS OpenSSH | SFTPGo, running in Docker |
| Port | 22 | 2022 |
| Purpose | Boomi serialized-inventory files | Vendor inspection reports |
| Users | haylee adam clint boomi (OS accounts) |
Separate SFTPGo accounts (own database) |
| Auth | Key-only | Password + 2FA (and/or key) |
| Folders | Per-user chroot jails /data/sftp/<user>/{inbound,processed} |
Per-agency shared folders /data/inspection-reports/<agency> |
| Reachable from | Internal VNet only (no public path) | Public IP, firewall-allowlisted |
| Managed via | SSH / cloud-init | SFTPGo WebAdmin UI + Azure Run Command |
They do not share accounts, ports, folders, or auth. The OS-level key-only hardening from TECH-607 was left completely untouched — SFTPGo manages its own users in its own database, so nothing about Service B weakened Service A.
The original design had no public IP — everything went over the internal VNet, and human access was supposed to come via a VPN gateway that was never built. For the vendor use case that doesn't work: an external inspection vendor in China can't reach a private VNet address.
So, with Adam's sign-off, the VM got a public IP locked down by firewall (NSG) — the same pattern already used for the Wiki VM. Only explicitly allowlisted IP addresses can reach it.
| Thing | Value |
|---|---|
| Public IP | 20.120.20.222 (Standard, Static) |
| NSG | boxhouse-sftp-vmNSG |
| Rule: SSH | port 22, source allowlisted IPs only (was "Any" by default — tightened immediately) |
| Rule: SFTPGo | ports 2022 (SFTP) + 8090 (WebAdmin), source allowlisted IPs only |
| Everything else | denied inbound |
The trap we hit, so you don't: the moment a public IP is attached, Azure's default
default-allow-sshrule allows port 22 from the entire internet. Always tighten that rule's source to your allowlisted IPs as the very first thing after attaching a public IP — before anything else. An exposed port 22 gets scanned within minutes.
Adding an allowlisted IP (e.g. onboarding Adam or a vendor): NSG →
boxhouse-sftp-vmNSG→ Inbound security rules → add a rule: source = their public IP asx.x.x.x/32, destination ports2022,8090(people) or just2022(vendors — they never need WebAdmin), TCP, Allow, a spare priority (1010, 1020…). Grab their IP fromwhatismyipaddress.com.
Dynamic-IP caveat: these rules pin exact IPs (
/32). Most home/office internet is dynamic and can change on a reboot or lease renewal — which silently breaks access (for us: locked out; for a vendor: uploads stop and we only notice when reports quit arriving). Decide deliberately per person/vendor whether to pin a/32, allow a wider ISP range, or (for vendors) skip IP-pinning and rely on password+2FA. Confirm with QnectU whether any of our connections are actually static.
Important, because it's not obvious: this VM has no VPN and no Bastion, so you often can't SSH to it from a normal machine (line-of-sight to the private IP isn't there). Don't fight it. Everything below was done via Azure Portal → the VM → Operations → Run command → RunShellScript, which runs a script as root through Azure's control plane — no SSH, no key, no network path required.
This is the go-to for any maintenance on this box: SFTPGo config, Docker, folder fixes, diagnostics. Paste a bash script, hit Run, read the output in the portal.
Run Command has a ~90-second window and no interactive input (you can't type at a prompt). For anything that would prompt (e.g. a password reset), pipe the value in, or do it in the WebAdmin UI instead.
SFTPGo runs as a Docker container defined by a compose file on the box at /data/sftpgo/docker-compose.yml. It's set to restart: unless-stopped, so it survives reboots.
services:
sftpgo:
image: drakkan/sftpgo:latest
container_name: sftpgo
restart: unless-stopped
ports:
- "2022:2022" # SFTP
- "8090:8080" # WebAdmin / WebClient
volumes:
- ./data:/srv/sftpgo/data
- ./config:/srv/sftpgo/config
- ./dbdata:/var/lib/sftpgo # <-- the database lives here (see 10.5)
- /data:/data # <-- lets the container see the host's inspection/home folders
To (re)deploy or restart after a config change, via Run Command:
cd /data/sftpgo && docker compose up -d && docker ps
SFTPGo stores its database at
/var/lib/sftpgo/sftpgo.dbINSIDE the container — NOT at/srv/sftpgo/data. If that path isn't mounted to a real volume, the entire config (admins, users, folders) lives only in the container's throwaway layer and is wiped the next time the container is recreated (docker compose up -dafter any image or compose change). The symptom is brutal and misleading: the box comes back showing the fresh "Initial Setup — create an administrator" screen, as if nothing was ever configured.
We hit exactly this today. The fix — already applied in the compose above — is the ./dbdata:/var/lib/sftpgo volume, which parks the database on the mounted data disk so it persists across recreates.
If you ever see the "Initial Setup" screen unexpectedly, do not create a new admin. That risks forking/clobbering. Instead check whether the DB volume is mounted and whether
sftpgo.dbexists, via Run Command:docker exec sftpgo ls -la /var/lib/sftpgo/A healthy box shows
sftpgo.dbthere.
Inspection reports for the two agencies live in separate shared folders. Each agency sees only its own; the team (you, Adam) sees both. This is done with SFTPGo Virtual Folders (WebAdmin → Virtual folders), which is the right tool when one folder is mounted into multiple user accounts.
| Virtual folder name | Path on the data disk |
|---|---|
weinspect |
/data/inspection-reports/weinspect |
wuhu |
/data/inspection-reports/wuhu |
Each user account then mounts the folder(s) it should see:
/weinspect and /wuhu./ (lands them straight in their folder).When mounting a shared virtual folder into a user, set quota size/files to
0(unlimited/shared-safe), not-1—-1wrongly counts shared files against that user's personal quota.
Users are created in WebAdmin → Users → Add. Key fields, with the ones that bite:
| Field | What to put |
|---|---|
| Username / Password | the login (this is what goes into an SFTP client) |
| Permissions (ACLs) | * = all (list, download, upload, create, delete, rename) |
| Storage | Local disk |
| Root directory | an absolute path, e.g. /data/home/<user> — must start with / |
| Virtual folders | mount weinspect / wuhu as per 10.6 |
Two gotchas from today: (1) Root directory must be an absolute path —
data/home/xfails,/data/home/xworks (leading slash). (2) The mounted folders must physically exist on the box and be visible to the container. If uploads/listing throw "failed to get directory listing," the folder either doesn't exist on disk or isn't reachable through the/data:/datamount. Create them via Run Command:mkdir -p /data/home/<user> /data/inspection-reports/weinspect /data/inspection-reports/wuhu chown -R 1000:1000 /data/home /data/inspection-reports(The SFTPGo container runs as uid 1000, which shows as
sftpadminon the host — same uid, two names, not a mismatch.)
Auth model: SFTPGo accounts here use password + 2FA for people (Adam's preference — 2FA is available on password accounts, set per-account in WebClient → 2FA). Key auth is also supported if a vendor prefers it. This is separate from — and does not change — the OS-level key-only OpenSSH hardening in Section 3.
There are three ways in. All require your IP to be on the NSG allowlist first (10.2).
Go to http://20.120.20.222:8090/web/client and log in with your user account (not the admin login). You get a file browser with your folders; upload/download by drag-or-button. This is the quickest way to use or test the box with zero install.
| Field | Value |
|---|---|
| Protocol | SFTP |
| Host | 20.120.20.222 |
| Port | 2022 (not 22 — that's the other service) |
| Username / Password | your SFTPGo account |
FileZilla is currently blocked by ThreatLocker (BoxHouse's app-allowlisting). QnectU ticket T20260819.0027 is open to whitelist it. When requesting, ask for the non-sponsored FileZilla build (the default download bundles adware). Use the WebClient (Option A) meanwhile.
http://20.120.20.222:8090 — this is the admin interface for creating users/folders, not for moving files. Admin login only.
All three are plain HTTP right now (browser will say "Not secure"). That's acceptable only because access is locked to allowlisted IPs. TLS should be added before any broader exposure — see 10.9.
Done and verified (2026-08-19):
Remaining:
BoxHouses__c record. The filename contract is Serial_InspectionAgency_InspectionType_Date (e.g. DPX25091000683_WEINSPECTION_Final_2025-12-23). Note a naming mismatch to reconcile: the agency folders are weinspect/wuhu, but the filename agency token is WEINSPECTION — the parser must map between them.| Thing | Value |
|---|---|
| Public IP | 20.120.20.222 |
| SFTP port | 2022 |
| WebAdmin | http://20.120.20.222:8090 |
| WebClient | http://20.120.20.222:8090/web/client |
| Compose file | /data/sftpgo/docker-compose.yml (backup: .yml.bak) |
| Database (persisted) | /data/sftpgo/dbdata/sftpgo.db on host → /var/lib/sftpgo/sftpgo.db in container |
| Agency folders | /data/inspection-reports/{weinspect,wuhu} |
| Container user | uid 1000 (sftpgo in container = sftpadmin on host) |
| Managed via | Azure Portal → VM → Operations → Run command → RunShellScript |
| Firewall (NSG) | boxhouse-sftp-vmNSG — allowlisted IPs only on 2022 + 8090 |