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
| deny[x] { | |
| request_permission[_] == "apis" | |
| request_intent = "write" | |
| listen_path := input.request.body.api_definition.proxy.listen_path | |
| result := regex.match("^(\/|[a-z0-9-.]+|{[a-zA-Z0-9_]+})+$", listen_path) |
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
| rules: | |
| paths-kebab-case: | |
| description: Paths should be kebab-case. | |
| message: "{{property}} should be kebab-case (lower-case and separated with hyphens)" | |
| severity: warn |
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
| package main | |
| import ( | |
| "context" | |
| "encoding/base64" | |
| "encoding/json" | |
| "fmt" | |
| "github.com/TykTechnologies/tyk/config" | |
| "io" | |
| "net/http" |
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
| import coprocess_object_pb2, coprocess_object_pb2_grpc | |
| from coprocess_session_state_pb2 import SessionState | |
| import grpc, time, json, gzip | |
| _ONE_DAY_IN_SECONDS = 60 * 60 * 24 | |
| from concurrent import futures | |
| def MyPreMiddleware(coprocess_object): |
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
| { | |
| "api_id": "22c41d3bd44f4764543a704c8934ad0c", | |
| "jwt_issued_at_validation_skew": 0, | |
| "upstream_certificates": {}, | |
| "use_keyless": true, | |
| "enable_coprocess_auth": false, | |
| "base_identity_provided_by": "", | |
| "custom_middleware": { | |
| "pre": [], | |
| "post": [], |
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
| { | |
| "api_id": "ad6fd896339b4c4c6763e4301e23c4ae", | |
| "jwt_issued_at_validation_skew": 0, | |
| "upstream_certificates": {}, | |
| "use_keyless": true, | |
| "enable_coprocess_auth": false, | |
| "base_identity_provided_by": "", | |
| "custom_middleware": { | |
| "pre": [], | |
| "post": [], |