Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 24 14:57
    MiquelMarinoColvin commented #1011
  • Nov 15 08:04
    djordje closed #1024
  • Nov 09 17:56
    souris-dev commented #889
  • Nov 05 00:32
    pablodenadai commented #1030
  • Nov 05 00:32
    pablodenadai commented #1030
  • 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
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
Seems like express-gateway is free to use
malsubmal
@malsubmal
guys
do we have to create a consumer for every new end user?
or am i missing sth?
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
I think it depends on your app actually... do you need some level of authentication? In my case I have no consumers
malsubmal
@malsubmal
ohhhh okay I read the Getting-started and assumed
thanks !
Juan C Soto
@jcsotoarvelaiz
Hi, Is this project maintained? Any idea when node 14 will be supported?
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
jcsotoarvelaiz (Juan C Soto): I’m getting the feeling the project is not very active
But you can take a look at the roadmap in their website
smelezan
@smelezan
Hi, i'm searching a way to stream audio, but I don't know how to pass through gateway, I see the request stream plugin but not much information on this
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
Hmmm it doesn’t look like those are related tho, but I’m no expert on that :(
smelezan
@smelezan
okay :c thanks
Shubham Tyagi
@mshubhamtyagi

Hi Everyone,

I am using microservices in one of my project.

I have a problem let assume we have 4 services & In all my services some files are uploading using multer. Now when I pushing the code the live server then I am facing an issue.

I have a gateway host which is you can assume https://api.xyz.com (It will be localhost in the case of local environment).

Now comes to my services so let assume we have user-service, admin-service so in this serviceEndpoints will be http://localhost:3000 & http://localhost:30001 respectively. Now If I want to access the image in admin service those are uploaded through user service. I need to buy a separate domain for that or a sub domain for that. Now if I have 100 services in my express gateway then I will need 100 domain or sub domains for that.

Please help me.

(PS: This is working correct in case of JSON data just because right now in server environment the service end point is localhost. So it fetch data from DB. But problem with files).

Sushan Shrestha
@sshrestha2_gitlab
@ghost~60064d62d73408ce4ff92107
Sushan Shrestha
@sshrestha2_gitlab
Hello
How do I configure interaction between my own authentication server and Express-Gateway? can someone help please?
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
Hello, what do you mean, Sushan?
Rail Way
@railway17
Hi, Everyone
I want to build simple gateway with express-gateway
My config is like below
  port: 8080
admin:
  port: 9876
apiEndpoints:
  api:
    host: localhost
    paths: "/ip"
  hr:
    methods: 'GET,POST,PUT' 
    host: localhost
    paths: '/api*'
serviceEndpoints:
  httpbin: # will be referenced in proxy policy
    url: 'https://httpbin.org'
  hrService: # will be referenced in proxy policy
    url: 'http://localhost:5000'
policies:
  - basic-auth
  - cors
  - expression
  - key-auth
  - log
  - oauth2
  - proxy
  - rate-limit
pipelines:
  default:
    apiEndpoints:
      - api
    policies:
      - proxy:
          - action:
              serviceEndPoint: httpbin
              changeOrigin: true
  hr:
    apiEndpoints:
      - hr
    policies:
      - 
        cors:
          - action:
              origin: '*'
              methods: ['HEAD','PUT','PATCH','POST','DELETE']
      - 
        proxy:
          - action:
              serviceEndPoint: hrService
Looks like I copied and pasted the sample config but I am getting Bad Gateway response in postman
hrService endpoint is working correctly
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