Sign inSign up

lsefiane/api-gateway

By lsefiane

Updated 8 months ago

API Gateway with Spring Cloud Gateway

Image
API management
1

2.1K

lsefiane/api-gateway repository overview

API Gateway with Spring Cloud Gateway

© 2024 | Lyes SEFIANE All Rights Reserved | CC BY-NC-ND 4.0

CC BY-NC-ND 4.0

GitHub Badges

License Contributor Covenant CodeQL Automatic Dependency Submission Java CI with Maven Docker Publish Quality Gate Status Bugs Code Smells Reliability Rating Security Rating Maintainability Rating Technical Debt Vulnerabilities Docker Pulls GitHub top language GitHub Release GitHub Release Date GitHub contributors GitHub Repo stars

GitHub

Properties

Redis
PropertyValue
spring.profiles.activeprod, test
spring.application.nameapi-gateway
spring.data.redis.repositories.enabledfalse
spring.cache.typeredis
spring.data.redis.database${REDIS_DATABASE}
spring.data.redis.host${REDIS_HOST}
spring.data.redis.port${REDIS_PORT}
spring.data.redis.password${REDIS_PASSWORD}
spring.data.redis.timeout60000
Routes
PropertyValue
spring.cloud.gateway.routes[0].id${ROUTE_0_ID}
spring.cloud.gateway.routes[0].uri${ROUTE_0_URI}
spring.cloud.gateway.routes[0].predicates[0]Path=${PATH}
spring.cloud.gateway.routes[0].predicates[1]Method=GET,POST,PUT,DELETE
Rate Limiting
PropertyValue
spring.cloud.gateway.routes[0].filters[0].nameRequestRateLimiter
spring.cloud.gateway.routes[0].filters[0].args[redis-rate-limiter.replenishRate]10
spring.cloud.gateway.routes[0].filters[0].args[redis-rate-limiter.burstCapacity]20
spring.cloud.gateway.routes[0].filters[0].args[redis-rate-limiter.requestedTokens]1
spring.cloud.gateway.routes[0].filters[0].args[key-resolver]#{@customKeyResolver}
Retry
PropertyValue
spring.cloud.gateway.routes[0].filters[1].nameRetry
spring.cloud.gateway.routes[0].filters[1].args[retries]2
spring.cloud.gateway.routes[0].filters[1].args[statuses]SERVICE_UNAVAILABLE
spring.cloud.gateway.routes[0].filters[1].args[methods]GET,POST,PUT,DELETE
spring.cloud.gateway.routes[0].filters[1].args[backoff.firstBackoff]10ms
spring.cloud.gateway.routes[0].filters[1].args[backoff.maxBackoff]50ms
spring.cloud.gateway.routes[0].filters[1].args[backoff.factor]3
spring.cloud.gateway.routes[0].filters[1].args[backoff.basedOnPreviousValue]false
Circuit Breaker
PropertyValue
spring.cloud.gateway.routes[0].filters[2].nameCircuitBreaker
spring.cloud.gateway.routes[0].filters[2].args[name]myCircuitBreaker
spring.cloud.gateway.routes[0].filters[2].args[fallbackUri]forward:/service-unavailable
HashiCorp Consul
PropertyValue
spring.cloud.consul.enabledtrue/false
spring.cloud.consul.host${SPRING_CLOUD_CONSUL_HOST}
spring.cloud.consul.port${SPRING_CLOUD_CONSUL_PORT}
spring.cloud.consul.discovery_registertrue/false
spring.cloud.gateway.discovery.locator.enabledture/false
Zipkin
PropertyValue
management.tracing.enabledtrue/false
management.zipkin.tracing.endpoint${MANAGEMENT_ZIPKIN_TRACING_ENDPOINT}
management.tracing.sampling.probability1.0

CI/CD with GitHub Actions

GitHub Release GitHub Release Date

GitHub Actions Pipeline

GitHub Actions Pipeline

SonarQube Cloud

Quality Gate Status Bugs Code Smells Reliability Rating Security Rating Maintainability Rating Technical Debt Vulnerabilities

SonarQube Cloud

Snyk Maven Analysis


Run snyk/actions/maven-3-jdk-17@master
  with:
    command: monitor
    args: --severity-threshold=low
    json: false
  env:
    SNYK_TOKEN: ***
/usr/bin/docker run --name snyksnykmaven3jdk17_8bea9f --label 2de416 --workdir /github/workspace --rm -e "SNYK_TOKEN" -e "INPUT_COMMAND" -e "INPUT_ARGS" -e "INPUT_JSON" -e "FORCE_COLOR" -e "SNYK_INTEGRATION_NAME" -e "SNYK_INTEGRATION_VERSION" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/api-gateway/api-gateway":"/github/workspace" snyk/snyk:maven-3-jdk-17  "snyk" "monitor" "--severity-threshold=low"

Monitoring /github/workspace (io.github.lyes-sefiane:api-gateway)...

Explore this snapshot at https://app.snyk.io/org/lyes-sefiane/project/8bb8216c-fa31-4e01-be2d-990dc42d1e2a/history/7ecdd7e5-51dd-4481-b97e-f0a73d476b67

Notifications about newly disclosed issues related to these dependencies will be emailed to you.
Snyk

DockerHub

Docker Scout

Run docker/scout-action@v1
quickview
cves
            ✓ SBOM of image already cached, 138 packages indexed
  
  
  ## Overview
  
                      │         Analyzed Image          
  ────────────────────┼─────────────────────────────────
    Target            │  ***:v1.7.13   
      digest          │  28a0e5e97111                   
      platform        │ linux/amd64                     
      vulnerabilities │    0C     0H     0M     0L      
      size            │ 211 MB                          
      packages        │ 138                             
  
  
  ## Packages and Vulnerabilities
  
    No vulnerable packages detected
  
  
recommendations


Docker Scout DockerHub

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Tag summary

Content type

Image

Digest

sha256:7525dfb7c

Size

190.1 MB

Last updated

12 months ago

docker pull lsefiane/api-gateway