Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 12 23:56
    dependabot[bot] labeled #1033
  • Aug 12 23:56
    dependabot[bot] opened #1033
  • Aug 12 23:56

    dependabot[bot] on npm_and_yarn

    Bump path-parse from 1.0.5 to 1… (compare)

  • Aug 04 17:12
    jayndu opened #1032
  • Jul 29 08:08
    codezilla91 commented #1011
  • Jul 14 18:10
    krishna-gennext opened #1031
  • Jul 06 14:49
    pprathameshmore edited #1030
  • Jul 06 14:39
    pprathameshmore opened #1030
  • Jun 29 15:18
    XVincentX closed #1029
  • Jun 29 15:18
    XVincentX commented #1029
  • Jun 29 07:58
    woderchen opened #1029
  • Jun 15 12:33
    isatria edited #1028
  • Jun 15 12:21
    isatria opened #1028
  • Jun 11 22:42
    Shamith005 commented #873
  • Jun 11 06:59
    izakfhy commented #873
  • Jun 07 02:54
    philipsjp26 commented #696
  • Jun 07 00:35
    philipsjp26 commented #1004
  • Jun 06 16:05
    dependabot[bot] labeled #1027
  • Jun 06 16:05

    dependabot[bot] on npm_and_yarn

    Bump ws from 6.2.1 to 6.2.2 Bu… (compare)

  • Jun 06 16:05
    dependabot[bot] opened #1027
Rail Way
@railway17
but can't reach via gateway
And httpbin endpoint does also respond with bad gateway
what's wrong in my config?
Rail Way
@railway17
Bad Gateway
This is postman response
Miruako
@Miruako
Hi everyone
I've got a problem that I want to add some extra request header when the request pass though the express-gateway.
But I failed with the request-transformer plugin.
Also the headers in pipeline optional reference not works.
Here's my config.yaml file:
pipelines:
  aggregate:
    apiEndpoints:
      - aggregateAPIs
    policies:
      - log: # policy name
          - action:    # array of condition/actions objects
                message: ${req.method} ${req.originalUrl} # parameter for log action
      - cors:
          - action:
                origin: 'http://localhost:4200'
                methods: 'PUT,POST,GET,DELETE,OPTIONS'
                allowedHeaders: ['X-Requested-With', 'Authorization', 'content-type']
                credentials: true
      - sso:
      - key-auth:
          - condition:
              name: expression
              expression: "req.headers['authorization']? req.headers['authorization'].indexOf('apiKey') == 0 : false"
            action:
              message: "consumer key"
      - onboard:
          - condition:
              name: expression
              expression: "req.headers['eg-consumer-id']"
            action:
              message: "3rd party user onboard process"
      - acl:
      - expression: 
          - action:    
              jscode: 'req.url.indexOf("/cogarch/api") == 0 ? req.url = req.url.substring(8, req.url.length) : null;' 
      - error:
      - proxy: # policy name
          - action:
              serviceEndpoint: aggregateService
              changeOrigin: true
              headers:
                request-header-test: "request-header-test"
1 reply
bkn
@bhargavkn
Hi :wave: Team, I've created two react apps -- one serving on port 3000 and the other serving on port 4000 on my local machine and set up express gateway in front of them. Although I can see the proper sources being shown in the browser's developer tools when I hit the gateway endpoint, the browser is not rendering those pages. The pages are rendering correctly when I hit the individual endpoints corresponding to the react apps. Any idea where I'm going wrong?
Not sure if this is relevant, but the each of the two apps have multiple routes operating within them (Using react's BrowserRouter)
Tomek
@tkrzywicki_twitter
is there a way to create own login and dialog UIs?
Robert Simpson
@xrobsimpson_twitter
When I follow the credential creation instructions on https://www.express-gateway.io/getting-started/, I get hung up indefinitely after I run the eg credentials create command.
I get three messages after I execute the command. All three say "Configuring yargs through package.json is deprecated and will be removed in a future major release, please use the JS API instead."
The credentials appear to be created; eg credentials list shows all the attempts I made. But when I retry my cURL against the http://localhost:8080/ip I get a string of HTML that ultimate spells out "Cannot GET /ip"
Robert Simpson
@xrobsimpson_twitter
I fixed the issue. The key-auth key in my gateway.config.yml file was not indented correctly.
However, that only solves the problem with the 'Cannot GET /ip". It does not solve the indefinite hang up after executing eg credentials create
zhouxuanxian
@zhouxuanxian
How To Use Environment Variables In Express Gateway ?run different env with gateway.config.yaml,i can not watch video with https://vimeo.com/259108554
Tarun Pai
@painotpi
Hey, has anyone implemented helmet for security headers with express-gateway?
Tejas-udeshi
@Tejas-udeshi
Is there a way where i can assign API's to application or restrict API to few applications only ?
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
What do you mean?
To allow only certain endpoints?
Tejas-udeshi
@Tejas-udeshi
yes.. it should get validated based on API key
like i should be able to map API's against API key. if user hits any other endpoint it should give error in response
example /hello /world /hi are 3 apis. /hello and /world is mapped to app1. if he tries to access /hi he should get unauthorized or invalid access error
As he is only authorized to use /hello and /world api only
Tejas-udeshi
@Tejas-udeshi
I dont think such mechanism exists currently in express-gateway
@samuelkitazume:matrix.org Can you comment ?
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
If you cannot do that through the built in authorization... you can use a custom plugin for that
Tejas-udeshi
@Tejas-udeshi
ok thanks ! any suggested Plugins ? @samuelkitazume:matrix.org
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
Hmm I meant you can code your custom plugin. In the project I was working on early this year I had to rely on AD groups, so I came up with a bunch of plugins...
Its very easy and straightforward
Tejas-udeshi
@Tejas-udeshi
oh okay got it.. Thanks alot! @samuelkitazume:matrix.org
Tarun Pai
@painotpi
I'm trying to implement helmet (https://www.npmjs.com/package/helmet) as a custom policy within express-gateway, but I don't have access to the gatewayExpressApp to apply this globally at the gateway level, is there another way to implement this?
1 reply
Simon Emms
@MrSimonEmms

Hello. Can someone explain what I'm doing wrong please? I'm forwarding to a service, but it appears to be adding a trailing slash. If I hit localhost:9999/api/v1/apiary, it forwards to apiary:3000/crud/ (with the trailing slash) even though I've configured without the trailing slash (see gist for config - https://gist.github.com/MrSimonEmms/461ec255a73d55c09b4d6e945be0df5d)

If I remove the /crud on the service, it doesn't put a trailing slash on

sudeepatpiserve
@sudeepatpiserve
how to remove a property from response array of object?
if the response is: [{"test":"test","test2":"test2"},{"test":"test","test2":"test2"}] I would like to remove test property
Andre
@andrequeiroz2
Hello gentlemen, I'm having trouble finding good examples of tutorials on express-gateway, could someone recommend me?
Thanks
polydevuk
@polydevuk
New to EG but finding it confusing as there only seems to be JSON and YAML. Where is the JS code that I can hack?
Miguel Durán
@miguel.386984_gitlab
Hi
RobbieS82
@RobbieS82
Can the website that discusses the headers option under proxy be updated with an example? I input a rule to add a header, but then my gateway starts complaining that no service endpoint is present
Vibha
@vibhaG
I am new to Express gateway and from the Spring world- does express come with support for an endpoint equivalent to spring cloud gateways lb:/app or Zuul’s service endpoint?
Alwan Alyafi Mulyawan
@Alwanly
Hi, I am new to Express gateway. how to run express gateway app on google kubernetes engine ?
1 reply
sunil193
@sunil193
Hello guys, is it way to send multipart form data (file) through gateway?
Armen
@chakhalyan1
Hi All, is it possible gateway configs used JSON format without YAML, if yes how ?
3 replies
Mauro de Pascale
@mdepa
Hi all, I'm exploring EQ as an option for a kubernetes project: is it possible to configure EG to perform TLS edge termination ? So the connection is protected up to the gateway and just http to the hidden service ? Sorry if the question sounds silly: I'm new to the tool.
Nuengnakhap
@Nuengnakhap
how to fix PayloadTooLargeError: request entity too large ?
shivam sharma
@Mr-4evER
hey, any idea for express-gateway on windows, it says eg is not working
1 reply
Krishna M
@krishna-gennext_gitlab
Hi
Please help for this error PayloadTooLargeError: request entity too large express api gateway
2 replies
RaedMou
@RaedMou
Hello, is there some documentation / articles about integrating a service discovery or service mesh with EG ?
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
Not that Im aware of, RaedMou
RaedMou
@RaedMou
@samuelkitazume:matrix.org Do you have some implmentation propositions ?
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
Not actually. That is something I wanted a while ago, but didnt have the budget to revisit. That would be awesome to have