mirror of
https://github.com/paralus/paralus.git
synced 2026-03-05 10:30:25 +00:00
Changes in this PR include - Authenticate gRPC requests - Initial file structure for authentication and authorization service - Use Auth middleware and interceptor service in usermgmt component - Authenticate HTTP request based on Kratos API token - Add Auth middleware to adminsrv component - Name the Grpc metadata fields - Maintain session data after authentication - Removed http middleware as it is not necessary - Exclude rpc methods from authentication - Handle error in auth interceptor - Revert to with cancel context - Log authentication failed requests and New function in authv3 - Initiate authContext struct in authv3 package using new public - function NewAuthContext.
106 lines
4.5 KiB
Modula-2
106 lines
4.5 KiB
Modula-2
module github.com/RafaySystems/rcloud-base/components/common
|
|
|
|
go 1.17
|
|
|
|
require (
|
|
github.com/dgraph-io/ristretto v0.1.0
|
|
github.com/evanphx/json-patch v4.12.0+incompatible
|
|
github.com/go-openapi/errors v0.20.2
|
|
github.com/go-openapi/runtime v0.23.0
|
|
github.com/go-openapi/strfmt v0.21.2
|
|
github.com/go-openapi/swag v0.19.15
|
|
github.com/go-openapi/validate v0.20.3
|
|
github.com/gogo/protobuf v1.3.2
|
|
github.com/google/uuid v1.3.0
|
|
github.com/grpc-ecosystem/grpc-gateway v1.16.0
|
|
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.2
|
|
github.com/json-iterator/go v1.1.12
|
|
github.com/ory/kratos-client-go v0.8.2-alpha.1
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/processout/grpc-go-pool v1.2.1
|
|
github.com/rs/xid v1.3.0
|
|
github.com/segmentio/encoding v0.3.2
|
|
github.com/speps/go-hashids v2.0.0+incompatible
|
|
github.com/uptrace/bun v1.0.20
|
|
github.com/urfave/negroni v1.0.0
|
|
github.com/valyala/fastjson v1.6.3
|
|
go.uber.org/zap v1.19.1
|
|
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa
|
|
google.golang.org/grpc v1.43.0
|
|
google.golang.org/protobuf v1.27.1
|
|
k8s.io/api v0.23.4
|
|
k8s.io/apiextensions-apiserver v0.23.4
|
|
k8s.io/apimachinery v0.23.4
|
|
k8s.io/client-go v0.23.4
|
|
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65
|
|
sigs.k8s.io/controller-runtime v0.11.1
|
|
sigs.k8s.io/kustomize/pseudo/k8s v0.1.0
|
|
sigs.k8s.io/yaml v1.3.0
|
|
)
|
|
|
|
require (
|
|
github.com/PuerkitoBio/purell v1.1.1 // indirect
|
|
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
|
|
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/cespare/xxhash/v2 v2.1.1 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/dustin/go-humanize v1.0.0 // indirect
|
|
github.com/fsnotify/fsnotify v1.5.1 // indirect
|
|
github.com/go-logr/logr v1.2.0 // indirect
|
|
github.com/go-openapi/analysis v0.20.1 // indirect
|
|
github.com/go-openapi/jsonpointer v0.19.5 // indirect
|
|
github.com/go-openapi/jsonreference v0.19.6 // indirect
|
|
github.com/go-openapi/loads v0.21.0 // indirect
|
|
github.com/go-openapi/spec v0.20.4 // indirect
|
|
github.com/go-stack/stack v1.8.0 // indirect
|
|
github.com/golang/glog v1.0.0 // indirect
|
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
|
github.com/golang/protobuf v1.5.2 // indirect
|
|
github.com/google/go-cmp v0.5.6 // indirect
|
|
github.com/google/gofuzz v1.1.0 // indirect
|
|
github.com/googleapis/gnostic v0.5.5 // indirect
|
|
github.com/imdario/mergo v0.3.12 // indirect
|
|
github.com/jinzhu/inflection v1.0.0 // indirect
|
|
github.com/josharian/intern v1.0.0 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.0.6 // indirect
|
|
github.com/mailru/easyjson v0.7.6 // indirect
|
|
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
|
|
github.com/mitchellh/mapstructure v1.4.1 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
|
github.com/oklog/ulid v1.3.1 // indirect
|
|
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
|
github.com/prometheus/client_golang v1.11.0 // indirect
|
|
github.com/prometheus/client_model v0.2.0 // indirect
|
|
github.com/prometheus/common v0.28.0 // indirect
|
|
github.com/prometheus/procfs v0.6.0 // indirect
|
|
github.com/segmentio/asm v1.1.0 // indirect
|
|
github.com/spf13/pflag v1.0.5 // indirect
|
|
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc // indirect
|
|
github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect
|
|
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
|
|
go.mongodb.org/mongo-driver v1.7.5 // indirect
|
|
go.uber.org/atomic v1.7.0 // indirect
|
|
go.uber.org/multierr v1.6.0 // indirect
|
|
golang.org/x/net v0.0.0-20211209124913-491a49abca63 // indirect
|
|
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
|
|
golang.org/x/sys v0.0.0-20211123173158-ef496fb156ab // indirect
|
|
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
|
|
golang.org/x/text v0.3.7 // indirect
|
|
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
|
|
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
|
|
google.golang.org/appengine v1.6.7 // indirect
|
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
|
|
k8s.io/component-base v0.23.4 // indirect
|
|
k8s.io/klog v1.0.0 // indirect
|
|
k8s.io/klog/v2 v2.30.0 // indirect
|
|
k8s.io/utils v0.0.0-20211116205334-6203023598ed // indirect
|
|
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
|
|
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
|
|
)
|
|
|
|
replace github.com/RafaySystems/rcloud-base/components/common => ./
|