Skip to content

task-010: inline RADIUS attribute constants - #8

Merged
Igloczek merged 1 commit into
masterfrom
task/010-inline-radius-constants
Jun 30, 2026
Merged

Igloczek merged 1 commit into
masterfrom
task/010-inline-radius-constants

Conversation

@Igloczek

@Igloczek Igloczek commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Implements tasks/010-inline-radius-constants.md from the ponytail audit backlog.

Goal

Delete radius-client.ts and node-radius-utils by inlining four RFC 2865 attribute names.

Scope

  • Move USER_NAME, USER_PASSWORD, CALLING_STATION_ID, CALLED_STATION_ID constants into src/server/util-server.ts (or a tiny radius-attrs.ts if cleaner).
  • Delete src/server/radius-client.ts if its logic is redundant with existing radius package usage in util-server.ts.
  • Remove node-radius-utils from package.json.
  • Keep RADIUS monitor behavior unchanged.

Acceptance criteria

  • node-radius-utils absent from package.json and bun.lock.
  • src/server/radius-client.ts deleted or reduced to nothing exported.
  • RADIUS monitor type still passes existing backend tests (add test if none).
  • bun run test:backend passes.
  • bun run build succeeds.

Depends on

Nothing.

Verification

bun run test:backend
bun run build
rg "node-radius-utils|radius-client" src package.json

Audit reference

Finding #14 — RADIUS client + node-radius-utils.

@Igloczek

Copy link
Copy Markdown
Collaborator Author

/ponytail-review

Lean already. Ship. Net -51 lines (172 insertions, 223 deletions). Removed one dependency and a file that only existed to wrap node-radius-utils dictionary paths never used by the client.

6 files changed, 172 insertions(+), 223 deletions(-)

@Igloczek
Igloczek force-pushed the task/010-inline-radius-constants branch from 3b2625a to 4acb1f7 Compare June 30, 2026 11:44
Remove node-radius-utils and radius-client.ts by inlining the four RFC
2865 attribute names and colocating the UDP Access-Request helper in
util-server.ts. Add radius backend tests.
@Igloczek
Igloczek force-pushed the task/010-inline-radius-constants branch from 4acb1f7 to 6c9b0c7 Compare June 30, 2026 11:51
@Igloczek
Igloczek merged commit 4cd18ee into master Jun 30, 2026
1 check passed
@Igloczek
Igloczek deleted the task/010-inline-radius-constants branch June 30, 2026 12:58
Igloczek added a commit that referenced this pull request Aug 8, 2026
task-010: inline RADIUS attribute constants
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.

1 participant