Repository navigation
feat: add k8s-gravitee-solace-waf Spring Boot sample - #157
Draft
slayerjain wants to merge 1 commit into
Draft
slayerjain wants to merge 1 commit into
slayerjain wants to merge 1 commit into
Conversation
Signed-off-by: slayerjain <shubhamkjain@outlook.com>
3 tasks
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.
Summary
Adds the
k8s-gravitee-solace-waf/sample demonstrating live Kubernetes record and deny-egress sandbox replay for a Spring Boot 3.3 / Java 21orders-apibehind a ModSecurity / OWASP CRS WAF and Gravitee API Gateway across five real dependencies:Solace): native SMF v3 (TCP 55555) JCSMP Direct publish (orders/created) and subscribe/publish/consume (orders/cancelled/<orderId>).PostgresV3): order persistence (INSERT,SELECT,UPDATE).Redis):SET NX EXidempotency (201/409), read-throughGET/SETEXcache, andDELon cancellation or WAF rejection.Http): inbound/ordersrouting + outbound/inventory/reservetoinventory-api.Http): inbound PL1 attack blocking (403, never reachingorders-api) + outbound PL2 partnerpayments-api(200authorized or403→422 payment_rejected_by_waf).DNS): cluster service name lookups.What's included
k8s-gravitee-solace-waf/app/: Spring Boot 3.3 / Java 21orders-api(pinnedmaven:3.9.16-eclipse-temurin-21/eclipse-temurin:21.0.13_9-jre) plus three variant patches:v2.patch(orders-api:2.0): multi-dependency regression across Gravitee (/inventory/reserve), Solace PubSub+ SMF (OrderCreated), and PostgreSQL (UPDATE).v3.patch(orders-api:2.1): subtle Solace PubSub+ value drift (channelupper-cased) for default vs Strict mock noise comparison.v4.patch(orders-api:2.2): intended API change (POST /orders/{id}/cancelreturns"status": "REFUND_PENDING"instead of"CANCELLED").k8s-gravitee-solace-waf/inventory-app/andpayments-app/: lightweight Java 21 downstream services.k8s-gravitee-solace-waf/k8s/: Kubernetes manifests with pinned images (solace/solace-pubsub-standard:10.26.0,graviteeio/apim-gateway:4.9.42,postgres:16.16-alpine,redis:7.2.17-alpine), ModSecurity / OWASP CRS ConfigMap (verified withingress-nginxfinal releasecontroller-v1.15.1), Gravitee API definitions, services, and Ingresses.k8s-gravitee-solace-waf/scripts/:solace-setup-queue.sh,solace-queue-depth.sh,traffic.sh,attack.sh, andreset.sh.k8s-gravitee-solace-waf/README.md+ rootREADME.mdentry (Update README.md #12): copy-pasteable step-by-step guide (neutral cluster namekeploy-k8s-sample, retiredingress-nginxnotice, third-party components and licences section covering Solace's proprietary licence).Pre-release verification
keploy-k8s-sample) withingress-nginx controller-v1.15.1,graviteeio/apim-gateway:4.9.42,postgres:16.16-alpine,redis:7.2.17-alpine,solace/solace-pubsub-standard:10.26.0,maven:3.9.16-eclipse-temurin-21, andeclipse-temurin:21.0.13_9-jre: all 4 inbound WAF attacks blocked (403, zeroorders-apilogs), outbound partner WAF blocks (403→422), smoke order201+ Solace queue depth1, and fulltraffic.shflow including native SMF cancel consume.keploy cloud replay/keploy cloud triageagainst PR-head builds ofkeploy/enterprise#3565andkeploy/k8s-proxy#1443(13 tests, 5 mock kinds, 13/0 auto-replay, 8/5 on2.0, 13/0 default & 10/3 strict on2.1, 11/2 on2.2, triageCALL_CHANGED/CALL_ADDED/RESPONSE_CHANGED).Release checklist (before un-drafting)
keploy/enterprise#3565andkeploy/k8s-proxy#1443merged and releasedvX.Y.Z+placeholders ink8s-gravitee-solace-waf/README.mdwith released versionskeploy/docsquickstart PR