Skip to content

fix(web): require auth for agent channel join and fix cert tests#3

Open
gsmlg wants to merge 1 commit intomainfrom
fix/ci-compilation-and-tests
Open

fix(web): require auth for agent channel join and fix cert tests#3
gsmlg wants to merge 1 commit intomainfrom
fix/ci-compilation-and-tests

Conversation

@gsmlg
Copy link
Copy Markdown
Contributor

@gsmlg gsmlg commented Mar 23, 2026

Summary

Follow-up to #2. Fixes the remaining 13 test failures in secrethub_web:

  • AgentChannel join/3 now rejects unauthenticated joins to specific agent channels (agent:<id>) with {:error, %{reason: "unauthorized"}} instead of auto-registering and authenticating (fixes 11 channel test failures)
  • Certificate validity tests replaced OpenSSL 3.2+ -not_before/-not_after flags with Erlang :public_key based certificate re-signing, compatible with all OpenSSL versions (fixes 2 cert test failures)

Test plan

  • Test workflow: all 13 previously failing web tests should pass

🤖 Generated with Claude Code

@gsmlg gsmlg force-pushed the fix/ci-compilation-and-tests branch from aef916f to 94e2325 Compare March 23, 2026 19:10
…tibility

- AgentChannel join/3 for specific agent channels now rejects
  unauthenticated connections with {:error, %{reason: "unauthorized"}}
- Replace slow self-signed cert generation (RSA keygen) with lightweight
  placeholder cert record when no CA available, preventing channel
  handler timeouts during authentication
- Replace OpenSSL -not_before/-not_after flags (requires 3.2+) with
  Erlang :public_key based certificate re-signing for validity tests
- Add rescue clause to issue_agent_certificate for robustness

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gsmlg gsmlg force-pushed the fix/ci-compilation-and-tests branch from 94e2325 to 73806d0 Compare March 23, 2026 19:21
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.

2 participants