Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ganaa
    @gantulgao
    hi. i'm using 3.11. but there is /oidc/.well-known/openid-configuration not showing subject_type_supported field. what should i do?
    8 replies
    Vincent Margerin
    @vmargerin
    Hello there,
    Is there an option to sanitize email notification (I can see it for Pages, but not for email) ?
    Thanks !
    3 replies
    Oliver Graebner
    @ofg
    Hi, I am trying to place the gateway in front of one of your existing development tools. To make that work I need to set the host header to a different value then the upstream service name, e.g. the host needs to reflect the original domain name the tool was hosted at. The setup in Kubernetes is: ingress with DNS name https://tool-1.mycompany => forwarding to gateway => forwarding to backend service http://internal-service-name; now the host header has the value "internal-service-name" and I need to set it to "tool-1.mycompany". Any chance to do this? Neither manipulating the header with "transform header" in the designer nor setting "preserve_host : true" has any effect ...
    3 replies
    kyew4u
    @kyew4u
    Hi,Do liveness and readiness probes work when using gravitee in kubernetes environment?
    2 replies
    Faf
    @fabMrc
    Hello
    14 replies
    2021-09-07 14:59:48.032 [vert.x-eventloop-thread-3] [] ERROR i.g.g.s.h.rule.EndpointRuleHandler - An error has occurred during Health check response handler
    org.springframework.expression.spel.SpelParseException: Expression [#response.status == ''UP"] @24: EL1045E: Cannot find terminating " for string
    it is a log from gateway
    logback.xml is configured to write out the api id but in log it does not appears
    [vert.x-eventloop-thread-3] []
    the [] is empty
    APIM 3.9
    do you have some ideas about it ?
    furthermore I believe it is related to a fixed issue but I want to be sure the error
    2021-09-07 14:59:39.945 [gio-heartbeat] [] ERROR i.g.g.s.heartbeat.HeartbeatThread - An unexpected error occurs while monitoring the gateway
    java.lang.IllegalStateException: Queue is full!
            at com.hazelcast.collection.impl.queue.QueueProxyImpl.add(QueueProxyImpl.java:59)
    is fixed in 3.10 or not
    Faf
    @fabMrc
    Last error in 3.9.0 is there something identified about ES indexes
    4 replies
    2021-09-07 15:49:27.566 [vert.x-eventloop-thread-5] [] ERROR i.g.e.client.http.HttpClient - An error occurs while indexing data into ES: indice[gravitee-rcc-health-2021.09.07] error[failed to parse]
    2021-09-07 15:49:27.566 [vert.x-eventloop-thread-5] [] ERROR i.g.e.client.http.HttpClient - An error occurs while indexing data into ES: indice[gravitee-rcc-health-2021.09.07] error[failed to parse]
    2021-09-07 15:49:30.156 [vert.x-eventloop-thread-6] [] ERROR i.vertx.core.net.impl.ConnectionBase - readAddress(..) failed: Connection reset by peer
    I have a lot of these logs, but in management console analytics are reacheable and in ES all seems OK green open gravitee-rcc-health-2021.09.07 aydRw5A0SK-Sm0pxaK05Mg 1 1 10997358 0 2.7gb 1.4gb
    François Papon
    @fpapon
    Hi
    I can't find the path of the readiness/liveness for the gateway
    8 replies
    gianx89
    @gianx89
    Any scripts to run while updating to am 3.11.0? https://docs.gravitee.io/am/current/am_installguide_migration.html
    3 replies
    Leo Vigna
    @leovigna
    For websocket endpoints is there a specific type similar to HTTP and GRPC options? I don't see those options in the console UI. Or should we just set the endpoint type as HTTP?
    What about for the target? Should it be http://endpoint or ws://endpoint?
    In my tests, I've been unable to connect when setting target to ws://endpoint and have gotten Unexpected Continuation Frame error when setting target to http://endpoint. This always using a websocket connection to test out.
    2 replies
    Leo Vigna
    @leovigna
    After investigating the issue deeper websocket seems to work with HTTP type and http://endpoint target. However, only with small payloads. When making a request that responds with a larger payload (2KB) I get Invalid WebSocket frame: invalid opcode 0 thrown when using the javascript ws client.
    I've tried increasing gateway config maxHeaderSize and maxChunkSize to no avail.
    Leo Vigna
    @leovigna
    I have also disabled perMessageWebSocketCompressionSupported and perFrameWebSocketCompressionSupported
    Leo Vigna
    @leovigna
    Does the gravitee proxy support websocket continuation frames? This seems to have been brought up in past issues.
    kolychev1995
    @kolychev1995
    Hi. Is there a mechanism in gravitee to implement something like politics in all apis at once? Is it possible to make some kind of plugin that would modify the request or response before or after the policy chain? I need to remove some headers in the response from the api gateway, but for this I do not want to add a policy to each api that does this.
    6 replies
    2cgc5h
    @2cgc5h_gitlab
    How to allow/disallow api-key in request query params per API?
    Michele Spinella
    @michelespinella

    Good day,
    I have a try to deploy gravitee-apim on kubernetes (microk8s) with the following command:

    microk8s helm3 install --set mongo.uri=mongodb://gravitee:gravitee@mongodb.default.svc.cluster.local:27017/gravitee?connectTimeoutMS=30000 
                           --set elasticsearch.enabled=false graviteeio-apim3 graviteeio/apim3
    
    But, I have two problems:
     1. The deployment and the pod of graviteeio-apim3-api (API) is in error due to "Readiness probe failed: dial tcp 10.1.105.38:8083: connect: connection refused", the attached log seems to be ok
     2. when I try to log into UI I receive this error: 
        Access to XMLHttpRequest at 'https://apim.example.com/management/organizations/DEFAULT/console' from origin 'http://localhost:18002' has been blocked by CORS policy: 
        No 'Access-Control-Allow-Origin' header is present on the requested resource.
        Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"https://apim.example.com/management/organizations/DEFAULT/console","headers":{"Accept":"application/json, text/plain, */*"}},"statusText":"","xhrStatus":"error"}
        vendors~app-674d4d08bf760c2f11af.js:3886 GET https://apim.example.com/management/organizations/DEFAULT/console net::ERR_FAILED
        Is possible to configure ingress/service to avoid apim.example.com, for now in my scenario my cluster ha an ip (172.XX.XX.XXX)? Have I to configure manually ingress?

    Thanks for any help
    regards @bthibault @brasseld
    Michele Spinella

    8 replies
    Markus Witte
    @macwitte
    @brasseld Is there any documentation about how to develop a gravitee service? I tried to write an own service and used the gravitee-gateway-service-ratelimit/gravitee-policy-ratelimit as the development base. The new AbstractService .doStart() method is called as expected and the Service is registered without any exception by using parentBeanFactory.registerSingleton(...). Unfortunately in my Policy which should use this singleton instance, it will not resolve my service from the context (executionContext.getComponent(...)). Is there any additional step to register my service? Or what I am doing wrong?
    15 replies
    Tom Brendlé
    @tbrendle

    Hi Room, I'm trying to setup a gmail SMTP using helm,

    smtp:
      enabled: true
      host: smtp.gmail.com
      port: 587
      from: test@gmail.com
      username: test@gmail.com
      password: password
      subject: "[Gravitee] %s"
      properties:
        auth: true
        starttlsEnable: true
        ssl.trust: smtp.gmail.com

    Unfortunately I get this error :

    11:31:17.708 [SimpleAsyncTaskExecutor-5] ERROR i.g.r.a.s.impl.EmailServiceImpl - Error while sending email notification
    org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not convert socket to TLS;
      nested exception is:
        javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate). Failed messages: javax.mail.MessagingException: Could not convert socket to TLS;

    Seems something is wrong with TLS here .. any idea on how I can debug this ?

    Thank you in advance :)

    5 replies
    Yaz
    @yazalulloa
    Hello is there a guide to use Consul.io with Gravitee?
    2 replies
    spelka
    @spelka

    hello, i am using the gravitee 3.x GUI for the first time, and I am trying to determine what the baseURL is for my APIs. In gravitee 2.x I was able to just open the API gallery, select the API endpoint's Overview, and the baseURL was the first thing listed, front and center. In gravitee 3.x, I no longer see a comparable field. I have been digging around for awhile with no luck,

    I also tried searching the gravitee API documentation to see if there i can run a curl command against a restful endpoint to GET the baseURL for a given API entry, but when i searched the 3.x documentation for "baseURL" I only got hits on Identity provider creation.

    I may be missing something obvious in using the new GUI, I don't have a lot of experience tinkering with it. But any help would be greatly appreciated!

    3 replies
    AliFetvaci
    @aliFetvaci61
    I created a new issue. can you reply quickly? gravitee-io/issues#6177
    Hi,
    i tryied to deploy gravitee-apim on kubernetes (microk8s) with the following command:

    microk8s helm3 install --set mongo.uri=mongodb://gravitee:gravitee@mongodb.default.svc.cluster.local:27017/gravitee?connectTimeoutMS=30000 --set elasticsearch.enabled=true --set es.endpoints={http://graviteeio-apim3-elasticsearch-client.default.svc.cluster.local:9200} graviteeio-apim3 graviteeio/apim3

    but i get the following warnings in the apim3-api pod :

    14:53:42.741 [vertx-blocked-thread-checker] WARN i.v.core.impl.BlockedThreadChecker - Thread Thread[vert.x-eventloop-thread-0,5,main] has been blocked for 2391 ms, time limit is 2000 ms
    14:53:43.740 [vertx-blocked-thread-checker] WARN i.v.core.impl.BlockedThreadChecker - Thread Thread[vert.x-eventloop-thread-0,5,main] has been blocked for 3391 ms, time limit is 2000 ms
    14:53:44.740 [vertx-blocked-thread-checker] WARN i.v.core.impl.BlockedThreadChecker - Thread Thread[vert.x-eventloop-thread-0,5,main] has been blocked for 4391 ms, time limit is 2000 ms
    14:53:45.750 [vertx-blocked-thread-checker] WARN i.v.core.impl.BlockedThreadChecker - Thread Thread[vert.x-eventloop-thread-0,5,main] has been blocked for 5391 ms, time limit is 2000 ms
    io.vertx.core.VertxException: Thread blocked

    After a loop blocked thread i get the follwing error:

    14:53:52.349 [graviteeio-node] ERROR i.g.r.a.s.GraviteeApisContainer - An unexpected error occurs while starting Gravitee.io - Rest APIs
    java.lang.NullPointerException: Name is null
    at java.base/java.lang.Enum.valueOf(Unknown Source)
    at io.gravitee.repository.management.model.RoleScope.valueOf(RoleScope.java:22)
    at io.gravitee.repository.mongodb.management.MongoRoleRepository.map(MongoRoleRepository.java:137)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
    at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
    at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
    at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
    at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
    at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
    at io.gravitee.repository.mongodb.management.MongoRoleRepository.findAllByReferenceIdAndReferenceType(MongoRoleRepository.java:173)
    at io.gravitee.rest.api.repository.proxy.RoleRepositoryProxy.findAllByReferenceIdAndReferenceType(RoleRepositoryProxy.java:61)
    at io.gravitee.rest.api.service.impl.RoleServiceImpl.findAllByOrganization(RoleServiceImpl.java:104)
    at io.gravitee.rest.api.service.impl.RoleServiceImpl.findAll(RoleServiceImpl.java:97)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
    at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
    at com.sun.proxy.$Proxy47.findAll(Unknown Source)
    at io.gravitee.rest.api.service.impl.upgrade.DefaultRolesUpgrader.upgrade(DefaultRolesUpgrader.java:50)
    at io.gravit
    Full logs in attachment.
    Can you please help us?
    Thanks for replies @brasseld
    Marco.
    André Santos
    @AndreRog
    I am using docker compose to launch gravitee to connect to AWS ES managed service and Document DB. With just the ES everything is working fine, when I delete the mongodb dependency and change the mongo_uri for the documentDB from AWS I get an error :
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'graviteeTransactionManager' available: No matching PlatformTransactionManager bean found for qualifier 'graviteeTransactionManager' - neither qualifier match nor bean name match!
    at org.springframework.beans.factory.annotation.BeanFactoryAnnotationUtils.qualifiedBeanOfType(BeanFactoryAnnotationUtils.java:109)
    at org.springframework.beans.factory.annotation.BeanFactoryAnnotationUtils.qualifiedBeanOfType(BeanFactoryAnnotationUtils.java:68)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.determineQualifiedTransactionManager(TransactionAspectSupport.java:406)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.determineTransactionManager(TransactionAspectSupport.java:384)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:284)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
    at com.sun.proxy.$Proxy56.findDefaultByKey(Unknown Source)
    11 replies
    spelka
    @spelka
    how do i edit an existing API's upstream endpoint? I dont see the ability to change that field anywhere in the GUI or in the API docs. I created a new test API with a "foobar" upstream endpoint, and I cant find "foobar" -anywhere-
    spelka
    @spelka
    I don't see how to do that from the documentation either. I am looking here at the documentation https://docs.gravitee.io/apim/3.x/apim_publisherguide_create_apis.html#manage_your_api but I'm not sure if this is the right page.
    Baptiste GAILLET
    @bat79a
    Hi I'm lauching mongoDB migration from 3.6 to 3.10 but one script for MongoDB is missing : https://docs.gravitee.io/apim/3.x/apim_installguide_migration.html#mongodb
    this one : Upgrade to 3.10.1
    Eric
    @leleueri
    Hi @bat79a
    Thanks you for highlight this issue. I will submit it to the team .
    Baptiste GAILLET
    @bat79a
    Perfect thx a lot, do you know if I can get this script somewhere because the migration is bloqued for me rigth now ;p
    Eric
    @leleueri
    ok, it has been fixed but the script isn't yet merge into the master branch so the documentation link is broken
    Baptiste GAILLET
    @bat79a
    Yes thx a lot ;p
    John Lithgow
    @johnlithgow88_gitlab

    Hi all,
    I am trying to enable prometheus metrics on the API gateway -- running on Openshift. No matter what i try , i get a connection refused error on port 18082.

    my gravitee.yaml contains:

    services:
      core:
        http:
          enabled: true
          port: 18082
          host: ${APIM3_GATEWAY_SERVICE_HOST}
          authentication:
            type: basic
            users:
              admin: adminadmin
          secured: false
      metrics:
        enabled: true
        prometheus:
          enabled: true

    on the gateway pod, I've tried:

    wget localhost:18082
    wget 127.0.0.1:18082
    wget <pod_id>:18082

    and all return : can't connect to remote host (xxxxxxxx): Connection refused

    Any Ideas? thanks in Advance

    1 reply