Coder Social home page Coder Social logo

krakend-httpsecure's People

Contributors

alombarte avatar deepsource-autofix[bot] avatar deepsourcebot avatar kpacha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

krakend-httpsecure's Issues

ssl_proxy_headers - wrong documentation

Hi guys,
Looking a bit into this middleware it seems that "ssl_proxy_headers" as specified in the documentation does not exist.
Shoudl be replaced by "host_proxy_headers"

panic happens when configured

im trying to configure the config according to the following docs
this documentation https://github.com/devopsfaith/krakend-documentation/blob/85d586a05a36a24abf894677c3521eeeff1d41b9/endpoints/security.md

        "github_com/devopsfaith/krakend-httpsecure": {
            "allowed_hosts": [],
            "ssl_proxy_headers": {},
            "sts_seconds": "300",
            "frame_deny": false,
            "sts_include_subdomains": false
        },

with this in mind i configured the config like above which results in a panic.

see the trace

panic: interface conversion: interface {} is string, not int

goroutine 1 [running]:
github.com/devopsfaith/krakend-ce/vendor/github.com/devopsfaith/krakend-httpsecure.getInt64(...)
        /go/src/github.com/devopsfaith/krakend-ce/vendor/github.com/devopsfaith/krakend-httpsecure/httpsecure.go:74
github.com/devopsfaith/krakend-ce/vendor/github.com/devopsfaith/krakend-httpsecure.ConfigGetter(0xc0007019b0, 0xc00071a800, 0x5)
        /go/src/github.com/devopsfaith/krakend-ce/vendor/github.com/devopsfaith/krakend-httpsecure/httpsecure.go:32 +0x790
github.com/devopsfaith/krakend-ce/vendor/github.com/devopsfaith/krakend-httpsecure/gin.Register(0xc0007019b0, 0xc00034c6c0, 0x1, 0x1)

what i tried voor the sts_seconds is

  • integer (300)
  • string ("300")

they both raise a panic

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.