Skip to content

feat: add extended post-auth logging and run config on every start#5

Merged
jozefrebjak merged 1 commit intodevelopfrom
feat/extended-post-auth-logging
Apr 2, 2026
Merged

feat: add extended post-auth logging and run config on every start#5
jozefrebjak merged 1 commit intodevelopfrom
feat/extended-post-auth-logging

Conversation

@jozefrebjak
Copy link
Copy Markdown
Contributor

Summary

  • Add CUSTOM_MYSQL_QUERIES_POST_AUTH_EXTENDED env var to log Calling-Station-Id (client IP) and Called-Station-Id (VPN gateway IP) in radpostauth table
  • Move post-auth schema migrations (ALTER TABLE) outside init lock — runs on every container start, safe to re-run
  • Move post-auth query replacement outside init lock — enables toggling extended/basic logging without deleting init lock

Usage

CUSTOM_MYSQL_QUERIES_POST_AUTH: "true"
CUSTOM_MYSQL_QUERIES_POST_AUTH_EXTENDED: "true"

Test plan

  • Start container with CUSTOM_MYSQL_QUERIES_POST_AUTH=true and CUSTOM_MYSQL_QUERIES_POST_AUTH_EXTENDED=true
  • Verify callingstationid and calledstationid columns are added to radpostauth
  • Verify post-auth query includes both new fields
  • Restart container — verify schema check and query replacement run again without issues
  • Disable EXTENDED and restart — verify query reverts to basic version
  • Verify existing data is preserved after schema changes

Closes #4

…y start

Move post-auth schema migrations and query configuration outside of the
init lock so they run on every container start. Add new env var
CUSTOM_MYSQL_QUERIES_POST_AUTH_EXTENDED to log Calling-Station-Id and
Called-Station-Id in the radpostauth table.

Closes #4
@github-actions github-actions Bot added the enhancement Enhancements ⬆️ label Apr 2, 2026
@jozefrebjak jozefrebjak self-assigned this Apr 2, 2026
@jozefrebjak jozefrebjak merged commit 6733f6f into develop Apr 2, 2026
1 check passed
@jozefrebjak jozefrebjak deleted the feat/extended-post-auth-logging branch April 2, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancements ⬆️

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add extended post-auth logging with Calling-Station-Id and Called-Station-Id

1 participant