Commit 2d033db
fix(ssh): Sync non-root user SSH keys to /root/.ssh for Airflow container access
The Airflow container mounts /root/.ssh:/root/.ssh:ro but when running
as a non-root admin user (e.g., github-runner), the SSH key exists at
/home/<user>/.ssh/id_rsa which is not accessible inside the container.
This fix:
- E2E workflow: Copy admin user's SSH key to /root/.ssh/ after generation
- docker-compose.yml: Add AIRFLOW_CONN_LOCALHOST_SSH with configurable
SSH user via QUBINODE_SSH_USER env var (defaults to root)
- deploy-qubinode.sh: Sync admin user's SSH key to /root/.ssh/ during
configure_ssh() for production deployments
The SSH connection now uses the mounted /root/.ssh/id_rsa key while
connecting as the configured user (root or QUBINODE_SSH_USER).
Fixes E2E test failure:
FileNotFoundError: [Errno 2] No such file or directory: '/home/github-runner/.ssh/id_rsa'
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent d4a80d4 commit 2d033db
File tree
3 files changed
+66
-0
lines changed- .github/workflows
- airflow
- scripts/development
3 files changed
+66
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
261 | 295 | | |
262 | 296 | | |
263 | 297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1371 | 1371 | | |
1372 | 1372 | | |
1373 | 1373 | | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1374 | 1401 | | |
1375 | 1402 | | |
1376 | 1403 | | |
| |||
0 commit comments