Code Monkey home page Code Monkey logo

camel-rest-extensions's People

Contributors

jam01 avatar rlratcliffe avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rlratcliffe

camel-rest-extensions's Issues

add generic undertow client configuration

    @Bean
    public SSLContextParameters builtin() throws GeneralSecurityException {
        TrustManagerFactory managerFactory = TrustManagerFactory
                .getInstance(TrustManagerFactory.getDefaultAlgorithm());
        managerFactory.init((KeyStore) null);

        TrustManagersParameters trustParams = new TrustManagersParameters();
        trustParams.setTrustManager(managerFactory.getTrustManagers()[0]);

        SSLContextParameters answer = new SSLContextParameters();
        answer.setTrustManagers(trustParams);

        return answer;
    }

    @Bean
    public UndertowComponent client(SSLContextParameters builtin) {
        UndertowComponent answer = new UndertowComponent();
        answer.setSslContextParameters(builtin);

        return answer;
    }

see:
https://access.redhat.com/documentation/en-us/red_hat_amq/6.3/html/security_guide/ssl-sysprops
https://gist.github.com/ravishankarhassain/51ccfbdb350f7ee57a05799655ccd94a
https://camel.apache.org/manual/latest/camel-configuration-utilities.html
https://stackoverflow.com/questions/19005318/implementing-x509trustmanager-passing-on-part-of-the-verification-to-existing/19005844#19005844
https://stackoverflow.com/questions/24555890/using-a-custom-truststore-in-java-as-well-as-the-default-one
https://stackoverflow.com/questions/31920719/getting-the-trusted-x509certificate-for-a-java-sslsocket
https://github.com/square/okhttp/blob/okhttp_4.9.x/okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

Implement multipart request validation

Currently the validators only validate with contentType.equals("application/xml") and contentType.equals("application/json"). Need to add multipart request support and investigate what multipart support the swagger-request-validator has.

The following may be helpful for the OpenApi4J validation:

openapi4j is archived

Using the archetype with camel-rest-extensions, when migrating APIs where the specification paths cannot be changed, this path pattern collision issue sometimes occurs. There may be other bugs but this seems to be the most common one.

Since openapi4j is archived, it means there's no support for fixing bugs like this.

Alternative libraries:

  • com.atlassian.oai swagger-request-validator-core is already part of this project and according to this camel-rest-extensions merged PR it was switched from because it didn't offer XML support, and there is still an open issue for XML support with the validator
  • ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.