Comments (3)
Was just reading up on the jwx package that is used to interact with JWTs and it seems like this is probably expected behavior due to the following:
https://github.com/lestrrat-go/jwx/blob/develop/v2/docs/01-jwt.md#terminology
Verification
We use the terms "verify" and "verification" to describe the process of ensuring the integrity of the JWT, namely the signature verification.
Validation
We use the terms "validate" and "validation" to describe the process of checking the contents of a JWT, for example if the values in fields such as "iss", "sub", "aud" match our expected values, and/or if the token has expired.
So either providing a way to disable Verification and Validation or a way to control the behavior of what is considered expired would be useful.
from cerbos.
Yes, this is the expected behaviour. Disabling verification only disables the cryptographic validation and we don't recommend doing that for production deployments. Regardless of the value of disableVerification
config, the exp
claim of the JWT is still checked to make sure that the token is valid and Cerbos is not operating on stale data. What's your use case for handling expired tokens?
from cerbos.
Our existing system allows for a leeway of a certain number of seconds for some reason, so we are seeing some differing behavior b/c Cerbos rejects some requests that our legacy system lets through due to a JWT being expired by a handful of seconds.
The legacy system is still in charge of doing the verification and validation of the JWT but Cerbos is using some of the claims in the JWT as input for the policies. So any JWT we hand off to Cerbos should be considered good already but we occasionally see these errors b/c of the difference in the allowed leeway.
from cerbos.
Related Issues (20)
- Are policies updated in-memory after being added or updated to the database? HOT 2
- Hibernate/JPA Query Plan Adapter HOT 2
- Clarify principal.id is matched for principal policies in the docs
- Variables referencing variables produce nondeterministic output HOT 2
- Support SIGHUP logrotation for audit (and other logs) HOT 5
- Audit events via gRPC endpoint HOT 4
- Collect E2E coverage profiles
- Handle leading `./` on Git store `subDir` config consistently
- Update cel-go to v0.18.0 HOT 1
- Change deprecated OTel jaeger exporter HOT 7
- Migrate to protovalidate
- Breaking change b/w cerbos v0.29.0 and dev HOT 2
- Update recommended nvim package manager in docs HOT 2
- Upgrade CEL to 0.18 HOT 2
- Improve error messages when gRPC endpoint doesn't exist
- Make the matched action available to conditions HOT 2
- Provide `runtime.action` to condition expressions HOT 1
- Document how to generate shell completion for 'cerbos', 'cerbosctl' CLI utilities HOT 2
- Make Validating and testing policies aware of lenientScope
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cerbos.