Skip to content

feat: ✨ Start the hostegress proxy from env (stacked on 2117) - #2132

Draft
evaline-ju wants to merge 6 commits into
rossoctl:mainfrom
evaline-ju:host-egress-2
Draft

evaline-ju wants to merge 6 commits into
rossoctl:mainfrom
evaline-ju:host-egress-2

Conversation

@evaline-ju

@evaline-ju evaline-ju commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A MOCA host can now run Cortex as its egress proxy without a config file. Today the hostegress build exits at startup unless it's given one, so it can't stand in for moca's egress proxy. Now it starts the way moca's proxy does, from the environment alone. It runs a built-in, loopback-only config with the egress guard on. It refuses to start without the control-socket uids and an egress allowlist, so it never runs with open egress. On a stop it exits cleanly at once, as moca's proxy does.

Cortex can also run as a systemd Type=notify service. It tells systemd it's ready once it serves, so services ordered after it, such as moca's VM worker, start only when the proxy can take their connections.

Assisted-By: Claude (Anthropic AI)

Related issue(s)

Part of #2085 (part 2 after #2117)

Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New/ToDo

Development

Successfully merging this pull request may close these issues.

1 participant