Skip to content

feat: network policy create flags#123

Merged
alb-rl merged 4 commits intomainfrom
cursor/network-policy-create-flags-b059
Feb 25, 2026
Merged

feat: network policy create flags#123
alb-rl merged 4 commits intomainfrom
cursor/network-policy-create-flags-b059

Conversation

@alb-rl
Copy link
Contributor

@alb-rl alb-rl commented Feb 25, 2026

Description

This PR updates the rl-cli to support the newly introduced allow AI gateway and allow MCP gateway flags for network policy creation, aligning the CLI with recent backend controller changes.

Note: PR titles should follow Conventional Commits format (e.g., feat(devbox): add support for custom env vars or fix(snapshot): resolve pagination issue) as they are used for automatic release notes generation.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test updates

Related Issues

Closes #

Changes Made

  • CLI Command: Added --allow-ai-gateway and --allow-mcp-gateway flags to the rl network-policy create command.
  • Type Definitions & Interfaces: Updated CreateOptions, CreateNetworkPolicyParams, UpdateNetworkPolicyParams, and ExtendedEgress to include the new allowAiGateway and allowMcpGateway fields.
  • Service Layer: Modified createNetworkPolicy, updateNetworkPolicy, getNetworkPolicy, and listNetworkPolicies functions in networkPolicyService to handle the new gateway fields.
  • UI Components: Integrated form fields for allowAiGateway and allowMcpGateway into the NetworkPolicyCreatePage and added display for these settings in the NetworkPolicyDetailScreen.

Testing

  • I have tested locally
  • I have added/updated tests
  • All existing tests pass

Verified:

  • CLI help output for network-policy create displays the new flags.
  • TypeScript compilation is successful with no errors.
  • Functional testing of creating and viewing network policies via the CLI and UI, confirming the new gateway settings are correctly applied and displayed.

Checklist

  • My code follows the code style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (CLI help output)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Additional Notes

The new allow AI gateway and allow MCP gateway flags default to "No" in the UI.


Slack Thread

Open in Web Open in Cursor 

…rk policy create

- Added --allow-ai-gateway and --allow-mcp-gateway CLI flags to network-policy create command
- Updated CreateOptions interface to include new gateway flags
- Extended network policy service types and functions to support new fields
- Updated NetworkPolicyCreatePage UI component to display and edit new flags
- Updated NetworkPolicyDetailScreen to show AI gateway and MCP gateway settings
- Added proper type handling with ExtendedEgress interface for new fields
@cursor
Copy link

cursor bot commented Feb 25, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@alb-rl alb-rl changed the title Network policy create flags feat: Network policy create flags Feb 25, 2026
- Upgraded @runloop/api-client from 1.6.0 to 1.9.0 which includes proper types for allow_ai_gateway and allow_mcp_gateway
- Removed all 'as any' type casts from networkPolicyService.ts
- Removed custom ExtendedEgress interface, now using types from API client
- Updated NetworkPolicyListItem interface in list.tsx to include new gateway fields
- Updated NetworkPolicyCreatePage and NetworkPolicyDetailScreen to use proper types without casts
- All TypeScript compilation now passes with proper type safety
@alb-rl alb-rl requested a review from dines-rl February 25, 2026 22:22
@alb-rl alb-rl marked this pull request as ready for review February 25, 2026 22:22
- Replace action-semantic-pull-request with custom github-script validation
- Always fetch current PR data via API to avoid stale event payload on re-runs
- Add workflow_dispatch trigger for manual re-runs
- Maintain same validation rules: conventional commits with lowercase description
@alb-rl alb-rl changed the title feat: Network policy create flags feat: network policy create flags Feb 25, 2026
@alb-rl alb-rl merged commit 8419b69 into main Feb 25, 2026
14 of 15 checks passed
@alb-rl alb-rl deleted the cursor/network-policy-create-flags-b059 branch February 25, 2026 22:34
dines-rl pushed a commit that referenced this pull request Feb 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.11.0](v1.10.0...v1.11.0)
(2026-02-26)


### Features

* add model name config in Benchmark Jobs
([#118](#118))
([08a67c7](08a67c7))
* **devbox:** add mcp hub to cli
([#124](#124))
([02a1b5e](02a1b5e))
* network policy create flags
([#123](#123))
([8419b69](8419b69))


### Bug Fixes

* bug with detail page stale data
([#120](#120))
([148a7bc](148a7bc))
* detail pages sections for large things on small screens
([#122](#122))
([059673a](059673a))
* unified polling hook
([#121](#121))
([f014f2d](f014f2d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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