You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auth: conflicting key inputs (constructor + env) silently prefer one without warning #249
Two places where the SDK silently picks one credential source when the caller passes two:
Constructor: if both private_key_path= and private_key= are passed, the path wins and the PEM string is silently ignored.
Environment: if both KALSHI_PRIVATE_KEY and KALSHI_PRIVATE_KEY_PATH are exported (common during CI key-rotation or dev/prod overlap), the inline PEM wins.
In either case the caller cannot tell which key is actually in use, which complicates key-rotation incident response: 401/403 failures look like a Kalshi-side credential issue when they are really an SDK precedence accident.
Activity