π¦ New version release#118
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@smooai/smooth-operator@1.8.0
Minor Changes
023c531: feat(auth): JWKS-based JWT verification (ES256 + any algorithm, with rotation) for
smoo/jwtmodesThe auth verifier could only validate tokens against a static RS256 PEM
(
AUTH_JWT_RS256_PUBLIC_KEY). SmooAI'sauth.smoo.ai(thesmooissuer) signsdashboard tokens with ES256 (
/.well-known/jwks.jsonβalg: ES256, kty: EC),so every real SmooAI token was rejected β blocking
AUTH_MODE=smoofor the SmooAIK8s flavor.
This adds a JWKS-backed verification path (additive, behavior-preserving):
AUTH_JWT_JWKS_URL, and auto-derivation of{AUTH_JWT_ISSUER}/.well-known/jwks.jsonwhen an issuer is set and no statickey is given.
kid),selected per-token by
kid, and validated with the key's algorithm viaDecodingKey::from_jwkβ so any advertised JWS algorithm works(ES256/ES384/RS256/PS256/EdDSA/β¦), not just RS256.
SmooIdentityVerifier(thesmoopath) andJwtVerifier(BYO), so any OIDC issuer works.
AuthVerifier::verifystays synchronous(the keyset is read from cache; the network fetch is off the hot path).
Key-source precedence (
jwt/smoo): staticAUTH_JWT_RS256_PUBLIC_KEYβstatic
AUTH_JWT_HS256_SECRETβ JWKS (AUTH_JWT_JWKS_URL, else issuer-derived).The static-RS256/HS256 paths are unchanged. With this,
AUTH_MODE=smooneedsonly
AUTH_JWT_ISSUER(+ optional audience) β no static public key.