Skip to content

fix: correct ai token auth default rule path - #1251

Open
immanuwell wants to merge 1 commit into
bfenetworks:developfrom
immanuwell:fix-ai-token-auth-default-path
Open

fix: correct ai token auth default rule path#1251
immanuwell wants to merge 1 commit into
bfenetworks:developfrom
immanuwell:fix-ai-token-auth-default-path

Conversation

@immanuwell

Copy link
Copy Markdown

What

Fixes the default ProductRulePath for mod_ai_token_auth.

It pointed at mod_ai_toekn_auth/token_rule.data, so leaving the setting empty sends BFE to a dead config path. tiny typo, real footgun imo.

Repro

  1. Leave [basic].ProductRulePath empty in conf/mod_ai_token_auth/mod_ai_token_auth.conf.
  2. Run config check/init.
  3. Before: resolves to conf/mod_ai_toekn_auth/token_rule.data.
  4. After: resolves to conf/mod_ai_token_auth/token_rule.data.

No cloud quota / API limit angle here, this is plain config fallback logic and it is reachable in normal deployments.

Tests

  • go test -count=1 ./bfe_modules/mod_ai_token_auth
  • go test ./...

No matching issue/PR found, afaict.

Signed-off-by: immanuwell <pchpr.00@list.ru>
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