diff --git a/README.md b/README.md index d1e5f64..7d6af02 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,26 @@

gostd

- Common functions and utilities in golang used across Fensak. + Common functions and utilities in golang used across IllumiTacit.

- - LICENSE + + LICENSE - - main branch CI + + main branch CI - - latest release + + latest release - - goreportcard + + goreportcard - + pkg.go reference - - go.mod version + + go.mod version

diff --git a/SECURITY.md b/SECURITY.md index 3b15b81..c1cbf5e 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,9 +2,9 @@ ## Reporting a Vulnerability -If you find or notice any security vulnerability in Fensak software, you can report the finding to the team at: +If you find or notice any security vulnerability in IllumiTacit software, you can report the finding to the team at: - security@fensak.io + security@illumitacit.com We will review the potential threat and work towards issuing a fix based on the level of risk associated with the vulnerability. During this time, we may follow up with additional information or guidance. Once a proper assessment has @@ -13,3 +13,7 @@ you infomred of the progress towards a fix and full announcement. Thank you for your help in improving the security of our open source software. We appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions. + +> **NOTE** +> +> We currently do not have a bug bounty program and will not offer bounties on reported security vulnerabilities. diff --git a/go.mod b/go.mod index 0aa85bd..304ff81 100644 --- a/go.mod +++ b/go.mod @@ -1,17 +1,15 @@ -module github.com/fensak-io/gostd +module github.com/illumitacit/gostd go 1.19 -replace github.com/fensak-io/gostd/gocloudxtd/docstore => ./gocloudxtd/docstore - require ( github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.0 github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus v1.4.0 github.com/Masterminds/sprig/v3 v3.2.3 github.com/alexedwards/scs/v2 v2.5.1 github.com/coreos/go-oidc/v3 v3.6.0 - github.com/fensak-io/httpzaplog v0.1.3 github.com/go-chi/chi/v5 v5.0.8 + github.com/illumitacit/httpzaplog v0.2.0 github.com/onsi/ginkgo/v2 v2.9.7 github.com/onsi/gomega v1.27.8 github.com/ory/nosurf v1.2.7 diff --git a/go.sum b/go.sum index a27749e..ec9aa7a 100644 --- a/go.sum +++ b/go.sum @@ -1104,8 +1104,6 @@ github.com/fatih/color v1.14.1/go.mod h1:2oHN61fhTpgcxD3TSWCgKDiH1+x4OiDVVGH8Wlg github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/fensak-io/httpzaplog v0.1.3 h1:aSyXIj0VXZI0dXdQpX3ljh5wwhWbKMmQcc0Qe3balfM= -github.com/fensak-io/httpzaplog v0.1.3/go.mod h1:BW2WvU6Dnl3kIgA8mE//leoyqr0fFaGnHBooXqJvHPg= github.com/flowstack/go-jsonschema v0.1.1/go.mod h1:yL7fNggx1o8rm9RlgXv7hTBWxdBM0rVwpMwimd3F3N0= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= @@ -1539,6 +1537,8 @@ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1: github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/ianlancetaylor/demangle v0.0.0-20220517205856-0058ec4f073c/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= +github.com/illumitacit/httpzaplog v0.2.0 h1:Kx1+EaKms+9/GEN6eaA/5DeYx+XgN/xdWlBlh1PgP3A= +github.com/illumitacit/httpzaplog v0.2.0/go.mod h1:3Ho5VMpJC05EOEnukFNBTeUwtZuC4gNE512neERfrik= github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.6/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.8/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= diff --git a/webstd/chistd/middleware_nosurf.go b/webstd/chistd/middleware_nosurf.go index e6cd595..17e00df 100644 --- a/webstd/chistd/middleware_nosurf.go +++ b/webstd/chistd/middleware_nosurf.go @@ -1,8 +1,8 @@ package chistd import ( - "github.com/fensak-io/gostd/webstd" "github.com/go-chi/chi/v5" + "github.com/illumitacit/gostd/webstd" ) // AddNosurfMiddleware will add the nosurf middleware into the chi stack. diff --git a/webstd/chistd/oidc_handlers.go b/webstd/chistd/oidc_handlers.go index 3c6cd47..9f53794 100644 --- a/webstd/chistd/oidc_handlers.go +++ b/webstd/chistd/oidc_handlers.go @@ -11,7 +11,7 @@ import ( "go.uber.org/zap" "golang.org/x/oauth2" - "github.com/fensak-io/gostd/webstd" + "github.com/illumitacit/gostd/webstd" ) func init() { diff --git a/webstd/chistd/router.go b/webstd/chistd/router.go index 63ae166..0a175a2 100644 --- a/webstd/chistd/router.go +++ b/webstd/chistd/router.go @@ -3,9 +3,9 @@ package chistd import ( "net/http" - "github.com/fensak-io/httpzaplog" "github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5/middleware" + "github.com/illumitacit/httpzaplog" "go.uber.org/zap" ) diff --git a/webstd/http.go b/webstd/http.go index f25ff48..aa98078 100644 --- a/webstd/http.go +++ b/webstd/http.go @@ -12,7 +12,7 @@ import ( "go.uber.org/zap" - "github.com/fensak-io/gostd/quit" + "github.com/illumitacit/gostd/quit" ) type App struct { diff --git a/webstd/idp/nopidp/go.mod b/webstd/idp/nopidp/go.mod index 7f31e10..131f7db 100644 --- a/webstd/idp/nopidp/go.mod +++ b/webstd/idp/nopidp/go.mod @@ -1,7 +1,7 @@ -module github.com/fensak-io/gostd/webstd/idp/nopidp +module github.com/illumitacit/gostd/webstd/idp/nopidp go 1.19 -replace github.com/fensak-io/gostd => ./../../../ +replace github.com/illumitacit/gostd => ./../../../ -require github.com/fensak-io/gostd v0.5.8-0.20230609175710-dbac7963ae39 +require github.com/illumitacit/gostd v0.5.8-0.20230609175710-dbac7963ae39 diff --git a/webstd/idp/nopidp/nopidp.go b/webstd/idp/nopidp/nopidp.go index de86e30..9ef068b 100644 --- a/webstd/idp/nopidp/nopidp.go +++ b/webstd/idp/nopidp/nopidp.go @@ -3,7 +3,7 @@ package nopidp import ( "context" - "github.com/fensak-io/gostd/webstd/idp" + "github.com/illumitacit/gostd/webstd/idp" ) // NOPIdP is an IdP service provider that does nothing (no-op). This is most useful for testing. diff --git a/webstd/idp/zitadel/go.mod b/webstd/idp/zitadel/go.mod index 93dbffa..bd753a7 100644 --- a/webstd/idp/zitadel/go.mod +++ b/webstd/idp/zitadel/go.mod @@ -1,12 +1,12 @@ -module github.com/fensak-io/gostd/webstd/idp/zitadel +module github.com/illumitacit/gostd/webstd/idp/zitadel go 1.19 -replace github.com/fensak-io/gostd => ./../../../ +replace github.com/illumitacit/gostd => ./../../../ require ( github.com/alexedwards/scs/v2 v2.5.1 - github.com/fensak-io/gostd v0.5.10-0.20230720163016-4d6e4513a6fe + github.com/illumitacit/gostd v0.5.10-0.20230720163016-4d6e4513a6fe github.com/zitadel/oidc v1.13.4 github.com/zitadel/zitadel-go/v2 v2.0.14 go.uber.org/zap v1.24.0 @@ -15,13 +15,13 @@ require ( require ( github.com/coreos/go-oidc/v3 v3.6.0 // indirect github.com/envoyproxy/protoc-gen-validate v1.0.1 // indirect - github.com/fensak-io/httpzaplog v0.1.3 // indirect github.com/go-chi/chi/v5 v5.0.8 // indirect github.com/go-jose/go-jose/v3 v3.0.0 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/gorilla/schema v1.2.0 // indirect github.com/gorilla/securecookie v1.1.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2 // indirect + github.com/illumitacit/httpzaplog v0.2.0 // indirect github.com/ory/nosurf v1.2.7 // indirect go.uber.org/atomic v1.11.0 // indirect go.uber.org/multierr v1.11.0 // indirect diff --git a/webstd/idp/zitadel/go.sum b/webstd/idp/zitadel/go.sum index 11cd60e..e059b4f 100644 --- a/webstd/idp/zitadel/go.sum +++ b/webstd/idp/zitadel/go.sum @@ -7,8 +7,6 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/envoyproxy/protoc-gen-validate v1.0.1 h1:kt9FtLiooDc0vbwTLhdg3dyNX1K9Qwa1EK9LcD4jVUQ= github.com/envoyproxy/protoc-gen-validate v1.0.1/go.mod h1:0vj8bNkYbSTNS2PIyH87KZaeN4x9zpL9Qt8fQC7d+vs= -github.com/fensak-io/httpzaplog v0.1.3 h1:aSyXIj0VXZI0dXdQpX3ljh5wwhWbKMmQcc0Qe3balfM= -github.com/fensak-io/httpzaplog v0.1.3/go.mod h1:BW2WvU6Dnl3kIgA8mE//leoyqr0fFaGnHBooXqJvHPg= github.com/go-chi/chi/v5 v5.0.8 h1:lD+NLqFcAi1ovnVZpsnObHGW4xb4J8lNmoYVfECH1Y0= github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/go-jose/go-jose/v3 v3.0.0 h1:s6rrhirfEP/CGIoc6p+PZAeogN2SxKav6Wp7+dyMWVo= @@ -29,6 +27,8 @@ github.com/gorilla/securecookie v1.1.1 h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyC github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2 h1:gDLXvp5S9izjldquuoAhDzccbskOL6tDC5jMSyx3zxE= github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2/go.mod h1:7pdNwVWBBHGiCxa9lAszqCJMbfTISJ7oMftp8+UGV08= +github.com/illumitacit/httpzaplog v0.2.0 h1:Kx1+EaKms+9/GEN6eaA/5DeYx+XgN/xdWlBlh1PgP3A= +github.com/illumitacit/httpzaplog v0.2.0/go.mod h1:3Ho5VMpJC05EOEnukFNBTeUwtZuC4gNE512neERfrik= github.com/onsi/ginkgo/v2 v2.9.7 h1:06xGQy5www2oN160RtEZoTvnP2sPhEfePYmCDc2szss= github.com/onsi/gomega v1.27.8 h1:gegWiwZjBsf2DgiSbf5hpokZ98JVDMcWkUiigk6/KXc= github.com/ory/nosurf v1.2.7 h1:YrHrbSensQyU6r6HT/V5+HPdVEgrOTMJiLoJABSBOp4= diff --git a/webstd/idp/zitadel/zitadel.go b/webstd/idp/zitadel/zitadel.go index fa0b052..09eb1a3 100644 --- a/webstd/idp/zitadel/zitadel.go +++ b/webstd/idp/zitadel/zitadel.go @@ -15,9 +15,9 @@ import ( "github.com/zitadel/zitadel-go/v2/pkg/client/zitadel" pb "github.com/zitadel/zitadel-go/v2/pkg/client/zitadel/management" - "github.com/fensak-io/gostd/webstd" - "github.com/fensak-io/gostd/webstd/chistd" - "github.com/fensak-io/gostd/webstd/idp" + "github.com/illumitacit/gostd/webstd" + "github.com/illumitacit/gostd/webstd/chistd" + "github.com/illumitacit/gostd/webstd/idp" ) type ZitadelAuthOptions struct { diff --git a/webstd/webcli/bindcfg.go b/webstd/webcli/bindcfg.go index df36a65..f7879ef 100644 --- a/webstd/webcli/bindcfg.go +++ b/webstd/webcli/bindcfg.go @@ -3,8 +3,8 @@ package webcli import ( "time" - "github.com/fensak-io/gostd/clistd" - "github.com/fensak-io/gostd/webstd" + "github.com/illumitacit/gostd/clistd" + "github.com/illumitacit/gostd/webstd" "github.com/spf13/pflag" ) diff --git a/workerstd/worker.go b/workerstd/worker.go index 20a00d0..edc8971 100644 --- a/workerstd/worker.go +++ b/workerstd/worker.go @@ -9,7 +9,7 @@ import ( "syscall" "time" - "github.com/fensak-io/gostd/quit" + "github.com/illumitacit/gostd/quit" "go.uber.org/zap" "gocloud.dev/pubsub" "google.golang.org/protobuf/proto"