-
Notifications
You must be signed in to change notification settings - Fork 0
Enroll Codex workspace through Cloudflare WARP #600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,3 +56,8 @@ spec: | |
| - 22 | ||
| - 80 | ||
| - 443 | ||
| - action: Allow | ||
| protocol: UDP | ||
| destination: | ||
| ports: | ||
| - 2408 | ||
16 changes: 16 additions & 0 deletions
16
docs/project_docs/BOXP-17-codex-workspace-warp-client/plan.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # BOXP-17: Codex workspace WARP client | ||
|
|
||
| Codex workspace から `even-g2-main.b0xp.io` を、`even-g2-main.even-g2-lab.svc.cluster.local` 直通ではなく Cloudflare WARP 利用者と同じ private hostname route で確認できるようにする。 | ||
|
|
||
| ## Scope | ||
|
|
||
| - workspace container に Cloudflare WARP enrollment 用 secret を注入する。 | ||
| - workspace container に `/dev/net/tun` と `NET_ADMIN` / `NET_RAW` を付与する。 | ||
| - Calico egress policy で WARP の UDP 2408 を許可する。 | ||
| - `even-g2-main` Service 側の NetworkPolicy には Codex workspace 直通許可を追加しない。 | ||
|
|
||
| ## Dependencies | ||
|
|
||
| - `boxp/arch` 側で codex-workspace image に Cloudflare WARP client と entrypoint 起動処理を追加する。 | ||
| - `boxp/arch` 側で WARP Service Token client ID / secret / organization を AWS SSM Parameter Store に用意する。 | ||
| - Cloudflare Zero Trust 側で、その Service Token を許可する device enrollment policy が必要。 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cloudflare WARP のデバイスプロファイルが MASQUE(FedRAMP High を含む)に設定されている環境では、WARP ingress のデフォルトが UDP/443 になると Cloudflare の公式ドキュメントに記載されています(https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/deployment/firewall/)。この追加は UDP/2408 だけを許可しており、既存の 443 許可は TCP のみなので、その構成ではトンネル確立パケットが NetworkPolicy で落ちて
even-g2-main.b0xp.ioへ到達できません。WireGuard に固定するか、Cloudflare WARP ingress 向けに UDP/443 も許可してください。Useful? React with 👍 / 👎.