Skip to content

Add endpoint support - #478

Merged
edi-oai merged 2 commits into
mainfrom
dev/edi/endpoints
Sep 2, 2026
Merged

Add endpoint support#478
edi-oai merged 2 commits into
mainfrom
dev/edi/endpoints

Conversation

@edi-oai

@edi-oai edi-oai commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This allows exposing services running in a VM directly on the Orchard Worker's machine, thus one can avoid the need to use port-forwarding and have less intermediaries.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T13:35:23.605707Z a0177db New commits
🔒 Security Review Completed 2026-09-02T13:41:54.726364Z a0177db New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

fkorotkov-oai
fkorotkov-oai previously approved these changes Sep 2, 2026

@sylvesterkaczmarek sylvesterkaczmarek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Endpoint listeners bind :port, so every exposed VM service listens on all worker network interfaces. There is no bind-address/exposure scope in EndpointSpec, so an internal VM service can be unintentionally published to the worker's surrounding network. Default to loopback or require an explicit exposure scope, and test the listener address.

Base automatically changed from dev/edi/softnet-policy-update to main September 2, 2026 13:19
@edi-oai
edi-oai dismissed fkorotkov-oai’s stale review September 2, 2026 13:19

The merge-base changed after approval.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bba8ffebeb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkg/resource/v1/v1.go
Comment on lines +201 to 204
// SemanticallyEqual treats omitted and explicitly empty collections as equal.
func SemanticallyEqual[T any](current, desired T) bool {
return cmp.Equal(current, desired, cmpopts.EquateEmpty())
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve VMSpec.SemanticallyEqual for downstream callers

Because pkg/resource/v1 is a public importable package, replacing the exported VMSpec.SemanticallyEqual method with this package-level generic function breaks source compatibility: downstream callers using current.SemanticallyEqual(desired) will fail to compile after upgrading even though the behavior still exists. Keep the original method as a wrapper while using the generic helper internally.

Useful? React with 👍 / 👎.

@edi-oai

edi-oai commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Endpoint listeners bind :port, so every exposed VM service listens on all worker network interfaces. There is no bind-address/exposure scope in EndpointSpec, so an internal VM service can be unintentionally published to the worker's surrounding network. Default to loopback or require an explicit exposure scope, and test the listener address.

Thanks for the heads-up, this is intended.

Making docs more explicit in a0177db.

@edi-oai
edi-oai merged commit 3fe0a28 into main Sep 2, 2026
3 checks passed
@edi-oai
edi-oai deleted the dev/edi/endpoints branch September 2, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants