Skip to content

feat(registry/coder/modules/agent-firewall): internal refactor boundary to agent-firewall#940

Merged
35C4n0r merged 4 commits into
mainfrom
35C4n0r/rename-boundary-to-agent-firewall
Jul 7, 2026
Merged

feat(registry/coder/modules/agent-firewall): internal refactor boundary to agent-firewall#940
35C4n0r merged 4 commits into
mainfrom
35C4n0r/rename-boundary-to-agent-firewall

Conversation

@35C4n0r

@35C4n0r 35C4n0r commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Description

Rename internal boundary references to agent-firewall across the agent-firewall registry module, add coder agent-firewall subcommand detection with fallback to coder boundary, bump module version to 1.0.0, and clone the boundary repo into an agent-firewall/ directory.

Preserves coder/boundary repo URLs, the boundary binary name (build artifact), and coder boundary CLI subcommand references where they are functionally required.

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/coder/modules/agent-firewall
New version: v1.0.0
Breaking change: [ ] Yes [x] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally
  • Terraform tests pass (terraform test - 8/8)
  • TypeScript tests pass (bun test - 13/13, 70 expect() calls)

Related Issues

REG-3: Update agent-firewall registry compatibility surfaces

Note

This PR was authored by Coder Agents on behalf of @35C4n0r.

Changes summary

Rename boundary to agent-firewall (all files)

  • Renamed all boundary_* / BOUNDARY_* Terraform locals and template variables to agent_firewall_* / AGENT_FIREWALL_* across main.tf, config.yaml.tftpl, and install.sh.tftpl
  • Renamed shell functions: validate_boundary_subcommandvalidate_agent_firewall_subcommand, install_boundaryinstall_agent_firewall, write_boundary_configwrite_agent_firewall_config, setup_boundarysetup_agent_firewall
  • Updated all log messages and comments to use agent-firewall
  • Updated test assertions in main.test.ts and test values in agent-firewall.tftest.hcl
  • Updated coder-mock.sh to handle both agent-firewall and boundary subcommands

Subcommand detection with fallback

  • validate_agent_firewall_subcommand() now tries coder agent-firewall --help first, falls back to coder boundary --help
  • Detected subcommand stored in CODER_SUBCOMMAND, used for license check and embedded into wrapper script
  • Wrapper script generated via heredoc + printf to inject the detected subcommand

Version bump

  • Bumped all README.md version references from 0.0.2 to 1.0.0

Clone directory

  • git clone coder/boundary.git now clones into agent-firewall/ instead of boundary/

35C4n0r added 2 commits July 2, 2026 17:05
…-firewall and add subcommand detection

- Rename all internal boundary_*/BOUNDARY_* variables, functions, and
  log messages to agent_firewall_*/AGENT_FIREWALL_* equivalents
- Add subcommand detection: prefer coder agent-firewall, fall back to
  coder boundary
- Update wrapper script generation to use detected subcommand via
  printf instead of hardcoded boundary
- Update coder-mock.sh to handle both agent-firewall and boundary
- Update test assertions to match new log messages and wrapper content
- Preserve coder/boundary repo URLs, binary name, and CLI references
@35C4n0r 35C4n0r self-assigned this Jul 2, 2026
…agent-firewall directory

Clone coder/boundary into agent-firewall/ instead of boundary/ to
align the local directory name with the module identity.
@35C4n0r 35C4n0r force-pushed the 35C4n0r/rename-boundary-to-agent-firewall branch from 32d5a02 to 25776b0 Compare July 2, 2026 19:18
@35C4n0r 35C4n0r marked this pull request as ready for review July 2, 2026 19:20
Comment thread registry/coder/modules/agent-firewall/README.md
@andrewdennis117 andrewdennis117 self-requested a review July 7, 2026 17:27
@35C4n0r 35C4n0r changed the title feat(registry/coder/modules/agent-firewall): rename boundary to agent-firewall, add subcommand detection, bump to v1.0.0 feat(registry/coder/modules/agent-firewall): internal refactor boundary to agent-firewall Jul 7, 2026
@35C4n0r 35C4n0r enabled auto-merge (squash) July 7, 2026 17:32
@35C4n0r 35C4n0r disabled auto-merge July 7, 2026 17:33
@35C4n0r 35C4n0r added the version:major Add to PRs requiring a major version upgrade label Jul 7, 2026
@35C4n0r 35C4n0r merged commit d8fcf75 into main Jul 7, 2026
5 checks passed
@35C4n0r 35C4n0r deleted the 35C4n0r/rename-boundary-to-agent-firewall branch July 7, 2026 17:34
35C4n0r added a commit that referenced this pull request Jul 7, 2026
…mp to patch (0.0.3) (#945)

## Description

Reverts the agent-firewall module version from `1.0.0` to `0.0.3`. The
major version bump in #940.

## Type of Change

- [ ] New module
- [ ] New template
- [ ] Bug fix
- [ ] Feature/enhancement
- [ ] Documentation
- [x] Other

## Module Information

**Path:** `registry/coder/modules/agent-firewall`
**New version:** `v0.0.3`
**Breaking change:** [ ] Yes [x] No

## Testing & Validation

- [x] Tests pass (`bun test`)
- [x] Code formatted (`bun fmt`)
- [x] Changes tested locally

## Related Issues

[REG-3: Update agent-firewall registry compatibility
surfaces](https://linear.app/codercom/issue/REG-3/update-agent-firewall-registry-compatibility-surfaces)

> [!NOTE]
> This PR was authored by Coder Agents on behalf of @35C4n0r.
@linear-code

linear-code Bot commented Jul 8, 2026

Copy link
Copy Markdown

REG-3

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

Labels

version:major Add to PRs requiring a major version upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants