Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 25 03:00
    gizmo49 commented #1032
  • Jan 22 00:56

    dependabot[bot] on npm_and_yarn

    (compare)

  • Jan 22 00:55

    dependabot[bot] on npm_and_yarn

    (compare)

  • Jan 22 00:55

    XVincentX on master

    Bump color-string from 1.5.3 to… Merge pull request #1037 from E… (compare)

  • Jan 22 00:55
    XVincentX closed #1037
  • Jan 22 00:55

    XVincentX on master

    Bump node-fetch from 2.6.0 to 2… Merge pull request #1038 from E… (compare)

  • Jan 22 00:55
    XVincentX closed #1038
  • Jan 22 00:52

    dependabot[bot] on npm_and_yarn

    (compare)

  • Jan 22 00:52
    dependabot[bot] closed #1007
  • Jan 22 00:52
    dependabot[bot] commented #1007
  • Jan 22 00:52
    dependabot[bot] labeled #1038
  • Jan 22 00:52
    dependabot[bot] opened #1038
  • Jan 22 00:52

    dependabot[bot] on npm_and_yarn

    Bump node-fetch from 2.6.0 to 2… (compare)

  • Jan 22 00:52
    dependabot[bot] labeled #1037
  • Jan 22 00:52
    dependabot[bot] opened #1037
  • Jan 22 00:52

    dependabot[bot] on npm_and_yarn

    Bump color-string from 1.5.3 to… (compare)

  • Jan 22 00:52

    XVincentX on npm_and_yarn

    (compare)

  • Jan 22 00:52
    XVincentX closed #1027
  • Jan 22 00:52

    XVincentX on master

    Bump ws from 6.2.1 to 6.2.2 Bu… Merge pull request #1027 from E… (compare)

  • Jan 22 00:52

    dependabot[bot] on npm_and_yarn

    (compare)

neha sachan
@nsachan_ftdr_gitlab

Hi Team,

just want to know, if express gateway is best fitt for golang micro-services ???

because golang is multi-threaded
??
decodesoft
@mymobile86

Hi, can anyone facing issue like this in oauth-introspection

My API's are unauthorized even though the token is valid and the response from the authorization server is also showing active:true but express-gateway not allowing the API to passthrough

Mohammad Syed
@mohammad
Is there a way to redirect users to a specific path if their policy renders them unauthorized? Use case would be to redirect to login screen which would generate a JWT for them.
Linus6
@sunilmathad007_twitter
Can anybody share implementation steps for Socket with Express gateway ?
love66172
@love66172
@SALOME78_gitlab @SALOME78_gitlab Did you solve that problem(ERROR: Configuring yargs through package.json is deprecated and will be removed in a future major release, please use the JS API instead)?
tarar290190
@tarar290190
hi
express gateway is not passing header
jwalpole
@jwalpole
Hello. So I am looking at the express-gateway document for req/resp data transformation and it is unclear how this api gateway transformation data such as xml to json, json to xml as a gateway should do before sending to a micro-service? I found this article in the blog, but that talks about using express directly. Am I missing or not understanding how express-gateway req/resp transform plug-ins work or does express-gateway just not support that?
HaiderAliAslam
@HaiderAliAslam
Hi Everyone! I am trying to use the CORS policy for one of my endpoints. But no matter what setting I provide, it allows the request to pass through. I want to restrict the endpoint access to a particular origin. Need some help!
This is how I am trying to configure the CORS policy:
apiEndpoints:
      - auth
    policies:
      - cors:
          - action:
              origin: [http://www.example.com]
              methods: "OPTIONS,POST"
              optionsSuccessStatus: 204
dinhthong173
@dinhthong173
Hi, can you help me fix config express gateway ?
image.png
please help me this problem
jags06
@jags06
Hi Everyone, Can someone share the how to make use of docker with express-gateway and how can expose services in container ? I am working on CI/CD pipeline from jenkins to docker
TamKings
@lord-zeus
Hello Guys i keep receiving this from a service of mine [EG:policy] warn: socket hang up when uploading file
Bogdan
@Bogdamned
Hello Everyone! Does anybody happen to know how to enable CRSF protection in express gateway?
vasanthk97
@vasanthk97

hello everyone, I want to know if we can change remote express gateway config from outside. Is there a api exposed for admins, to enable changing config without having to change the docker image of eg?

Our use case is we have an infrastructure based on tenants and want to change the config in run time without having container restarts or image changes

sohambarc
@sohambarc
Is there any way to how I can use rate-limit for a specific path ?

http:
port: 9000
admin:
port: 9876
hostname: localhost
apiEndpoints:
cust:
host: localhost
paths:

  - '/delete'
  - '/update'

serviceEndpoints:
custsurv:
url: 'http://localhost:3000'
policies:

  • basic-auth
  • cors
  • expression
  • key-auth
  • log
  • oauth2
  • proxy
  • rate-limit
    pipelines:
    default:
    apiEndpoints:
    • cust
      policies:
    • rate-limit:
      • action:

        Limit to 1 per minute

        max: 1
        windowMs: 100000
    • proxy:
      • action:
        serviceEndpoint: custsurv
        changeOrigin: true
Like I want to use rate-limit for /delete path
ImenHassine
@ImenHassine
image.png
ImenHassine
@ImenHassine
Helloo everybody , whyyy the body is sent always empty
ImenHassine
@ImenHassine
and how can i generate API documentation (swagger) from express gateway ?
also how to use scopes in oauth2 ? key-auth with scopes works but oauth2 it does not work
Doqnach
@Doqnach
hey all. is Express Gateway still under (active) development? Or is the last version really from September 2019?
omprasadnayak
@omprasadnayak
how to implement express gateway with kubernetes ?
aOmmy Indy
@aommyindy

hi, I have questions about policies: response-transformer

pipelines:
  pipeline1:
    apiEndpoints:
      - sampleEndpoint
    policies:
      - response-transformer:
        - action:
            body:
              add:
                hello: "'world'"
            headers:
              add:
                r-test: "'header value'"
      - proxy:
          - action:
              serviceEndpoint: backend

we can not proxy action serviceEndpoint: backend or not ?

I want to mock response-transformer some json
for loadtest and not loadtest 3rd party
Doqnach
@Doqnach
@XVincentX hi, is this product still active? or deprecated?
ImenHassine
@ImenHassine
How to combined multiple responses with single gateway endpoint using express gateway
And express Gateway does not really support such scenario unfortunately. So i to have to write my own plugin
and when i did that the route in gateway.config.yml
ImenHassine
@ImenHassine
does not work very well
William Chance
@wchance
I would like to sign all proxied transactions is there a way to do it from express-gateway
found some plug-in called hmac-request but not sure if this is recommended
Sameh Fakoua
@fakoua
Hello everyone
I have the following configuration:
apiEndpoints:
  api:
    host: localhost
    paths: "/ip"
  todos:
    host: localhost
    paths: "/todos"
serviceEndpoints:
  httpbin:
    url: "https://httpbin.org"
  todosService:
    url: "https://jsonplaceholder.cypress.io"
pipelines:
  default:
    apiEndpoints:
      - api
    policies:
      - proxy:
          - action:
              serviceEndpoint: httpbin
              changeOrigin: true
  todosPipeline:
    apiEndpoints:
      - todos
    policies:
      - proxy:
          - action:
              serviceEndpoint: todosService
              changeOrigin: true
now if i want to request httpbin: http://localhost:8080/ip
and if I want to request jsonplaceholder: http://localhost:8080/todos
how can i prefix to each service, for example for jsonplaceholder: http://localhost:8080/PREFIX/todos which will fetch the original domain/todos
TamKings
@lord-zeus

try this

apiEndpoints:
  api:
    host: localhost
    paths: “/ip/*"
  todos:
    host: localhost
    paths: “/todos/*"

add “/*” to the api endpoints

Sameh Fakoua
@fakoua
Many thanks, i found the solution with proxies in the action as follow:
       -action:
            ....
             prependPath: true
              ignorePath: false
              stripPath: true
TamKings
@lord-zeus

Many thanks, i found the solution with proxies in the action as follow:

Ok Cool

Miruako
@Miruako
Guys, I've got an error [EG-Policy] socket hang up randomly when I send a request, anybody know what it means exactly???
Sameh Fakoua
@fakoua
Happy New Year Express-Gatewaysters!