Skip to content

Fix registration cache debug output#3291

Open
zlzheshi wants to merge 1 commit into
juanfont:mainfrom
zlzheshi:fix-registration-cache-debug
Open

Fix registration cache debug output#3291
zlzheshi wants to merge 1 commit into
juanfont:mainfrom
zlzheshi:fix-registration-cache-debug

Conversation

@zlzheshi

Copy link
Copy Markdown

Fixes #2714

This changes the registration cache debug output to return a JSON-safe representation of pending auth requests instead of exposing internal auth request state. The endpoint now includes cache metadata and serializable entries for pending registration and SSH-check auth requests, while avoiding internal channels and one-time CSRF values.

Checks run:

  • go test ./hscontrol/state -count=1
  • go test ./hscontrol -run '^$' -count=1
  • git diff --check

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.

[Bug] Internal server error on /debug/registration-cache

2 participants