-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[Ruleset Engine] New fields reference #19214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
pedrosousa
merged 48 commits into
production
from
pedro/PCX-14693-ruleset-engine-new-fields-reference-poc
Jan 17, 2025
Merged
[Ruleset Engine] New fields reference #19214
pedrosousa
merged 48 commits into
production
from
pedro/PCX-14693-ruleset-engine-new-fields-reference-poc
Jan 17, 2025
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
Also removed test field.
…lds-reference-poc
Deploying cloudflare-docs with
|
| Latest commit: |
b0b71f9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fcf781b2.cloudflare-docs-7ou.pages.dev |
| Branch Preview URL: | https://pedro-pcx-14693-ruleset-engi.cloudflare-docs-7ou.pages.dev |
Contributor
pedrosousa
commented
Jan 16, 2025
| 5. Choose **Set dynamic**. | ||
| 6. Set the header name to `x-send-jwt-claim-user`. | ||
| 7. Set the value to `lookup_json_string(http.request.jwt.claims["<TOKEN_CONFIGURATION_ID>"][0], "claim_name")`, where `<TOKEN_CONFIGURATION_ID>` is your token configuration ID found in JWT Validation and `claim_name` is the [JWT claim](/ruleset-engine/rules-language/fields/dynamic-fields/#json-web-tokens-validation-claims) you want to add to the header. | ||
| 7. Set the value to `lookup_json_string(http.request.jwt.claims["<TOKEN_CONFIGURATION_ID>"][0], "claim_name")`, where `<TOKEN_CONFIGURATION_ID>` is your token configuration ID found in JWT Validation and `claim_name` is the JWT claim you want to add to the header. |
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed link because we're not yet documenting the http.request.jwt.claims field.
kodster28
approved these changes
Jan 16, 2025
marciocloudflare
approved these changes
Jan 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
product:api-shield
product:bots
Related to Bots product
product:cache
Issues or PRs related to Cache
product:cloudflare-for-platforms
product:ddos-protection
product:firewall
Related to Firewall product
product:fundamentals
product:learning-paths
product:load-balancing
Related to Load Balancing product
product:magic-firewall
product:rules
Related to rules
product:ruleset-engine
product:waf
product:waiting-room
Related to Waiting Room product
size/xl
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.
Summary
Addresses PCX-14053, following the PoC done in PCX-14693.