mirror of
git://f0xx.org/android_cast
synced 2026-07-29 04:18:09 +03:00
bastion RSSH + other changes
This commit is contained in:
@@ -186,11 +186,28 @@ bash scripts/init-third-party-submodules.sh # or ./rebuild.sh (includes init +
|
||||
|
||||
Gradle fails fast if the submodule is missing. VPN runs in `:vpn` (`AndroidCastVpnService` + AIDL); `WireGuardVpnEngine` uses `GoBackend` with TUN fallback in the same process.
|
||||
|
||||
## RSSH alpha (reverse SSH)
|
||||
|
||||
| Layer | Component | Notes |
|
||||
|-------|-----------|--------|
|
||||
| **App** | `ReverseSshTunnelBridge` | JSch outbound `-R 127.0.0.1:<port>:127.0.0.1:8022` |
|
||||
| **App** | `RsshLocalSshServer` | Apache MINA SSHD on `127.0.0.1:8022` |
|
||||
| **BE** | `RsshSessionProvisioner` / `RsshBastionProvisioner` | DB creds; optional Linux user via `rssh_bastion_user.sh` |
|
||||
| **FE** | nginx `stream` | `nginx/rssh-bastion-stream.conf.example` |
|
||||
| **Sim** | `examples/rssh/linux-sim/` | Laptop heartbeat + `ssh -R` |
|
||||
|
||||
Developer settings → **RSSH** (no VPN dialog). Operator command shown in admin active sessions.
|
||||
|
||||
## RA control HTTP (`:ra_control`)
|
||||
|
||||
Isolated process: template web UI + sandbox shell when RA session is up. Port/token in `adb.json` `ra_control` block.
|
||||
|
||||
## Tests
|
||||
|
||||
```bash
|
||||
./gradlew :app:testDebugUnitTest --tests 'com.foxx.androidcast.remoteaccess.*'
|
||||
bash examples/crash_reporter/backend/scripts/test_rbac_api.sh
|
||||
bash examples/crash_reporter/backend/scripts/test_rssh_unit.sh
|
||||
bash examples/crash_reporter/backend/scripts/test_rssh_api.sh
|
||||
bash examples/crash_reporter/backend/scripts/test_remote_access_api.sh
|
||||
BASE=https://apps.f0xx.org/app/androidcast_project/crashes bash examples/crash_reporter/backend/scripts/test_remote_access_api.sh
|
||||
BASE=https://apps.f0xx.org/app/androidcast_project/crashes bash examples/crash_reporter/backend/scripts/ra_e2e_cli.sh
|
||||
|
||||
Reference in New Issue
Block a user