* fix not setting status code in nethttpadaptor on response
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* make test name consistent
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* git mod tidy
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* included body in opa middleware which is required to do graphql field level authorisation
* fix broken test and middleware
* Update middleware_test.go
* go fmt
* goimports + gofumpt
Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
Co-authored-by: Long Dai <long.dai@intel.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
* a prototype for sentinel middleware
* adapt sentinel's logger to dapr and optimize configs
* fix lint issue
* fix lint issues
* go mod tidy
* revise accoring to the review comments
* go mod tidy
* enhance unit tests
* fix lint issue
* fix go.sum
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
* adding force https metadata and its handler code
* make https a const; change ForceHTTPS to lowercase before compare with true
* replacing strings.ToLower with strings.EqualFold due to lint error in Build linux_amd64 binaries check
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Young Bu Park <youngp@microsoft.com>
* feat(middleware): add opa middleware
* address linting feedback
* unwind logic a little more
* are we gonna need to throw hands lint?
* remove accidental assertion lib include
* address pr feedback
* expand test suite to headers
* fix errors and moar test
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
* add initial ratelimit middleware
* fixed linting issues
* updated rate limiting logic
* removed redundant const
* remove obsolete go.uber.org/ratelimit reference in go mod
* migrated from juju/ratelimit to tollbooth rate limit
* moved adaptor to a separate package and added tests
* added RemoteAddr
* moved handler wrapped outside hot path
* fix linter
* Implemented OIDC Bearer middleware
* Fixed indentation
Added support for case-insensitive scheme
Moved scheme to constant
Co-authored-by: Aman Bhardwaj <amanbha@users.noreply.github.com>