Skip to content

Commit

Permalink
Rename go module to istio-ecosystem/authservice
Browse files Browse the repository at this point in the history
  • Loading branch information
nacx committed Mar 12, 2024
1 parent 276f2b2 commit 4f28347
Show file tree
Hide file tree
Showing 37 changed files with 114 additions and 114 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# authservice-go
# authservice

[![CI](https://github.com/tetrateio/authservice-go/actions/workflows/ci.yaml/badge.svg)](https://github.com/tetrateio/authservice-go/actions/workflows/ci.yaml)
[![codecov](https://codecov.io/gh/tetrateio/authservice-go/graph/badge.svg?token=JTLsQloZo9)](https://codecov.io/gh/tetrateio/authservice-go)
[![CI](https://github.com/istio-ecosystem/authservice/actions/workflows/ci.yaml/badge.svg)](https://github.com/istio-ecosystem/authservice/actions/workflows/ci.yaml)
[![codecov](https://codecov.io/gh/tetrateio/authservice/graph/badge.svg?token=JTLsQloZo9)](https://codecov.io/gh/tetrateio/authservice)

An implementation of [Envoy](https://envoyproxy.io) [External Authorization](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/ext_authz_filter),
focused on delivering authN/Z solutions for [Istio](https://istio.io) and [Kubernetes](https://kubernetes.io).
Expand All @@ -11,8 +11,8 @@ project from C++ to Go.

## Introduction

`authservice-go` helps delegate the [OIDC Authorization Code Grant Flow](https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth)
to the Istio mesh. `authservice-go` is compatible with any standard OIDC Provider as well as other Istio End-user Auth features,
`authservice` helps delegate the [OIDC Authorization Code Grant Flow](https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowAuth)
to the Istio mesh. `authservice` is compatible with any standard OIDC Provider as well as other Istio End-user Auth features,
including [Authentication Policy](https://istio.io/docs/tasks/security/authn-policy/) and [RBAC](https://istio.io/docs/tasks/security/rbac-groups/).
Together, they allow developers to protect their APIs and web apps without any application code required.

Expand All @@ -31,7 +31,7 @@ Some of the features it provides:

## How does authservice work?

[This flowchart](https://miro.com/app/board/o9J_kvus6b4=/) explains how `authservice-go`
[This flowchart](https://miro.com/app/board/o9J_kvus6b4=/) explains how `authservice`
makes decisions at different points in the login lifecycle.

## Contributing
Expand Down
8 changes: 4 additions & 4 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (
"github.com/tetratelabs/run/pkg/signal"
"github.com/tetratelabs/telemetry"

"github.com/tetrateio/authservice-go/internal"
"github.com/tetrateio/authservice-go/internal/k8s"
"github.com/tetrateio/authservice-go/internal/oidc"
"github.com/tetrateio/authservice-go/internal/server"
"github.com/istio-ecosystem/authservice/internal"
"github.com/istio-ecosystem/authservice/internal/k8s"
"github.com/istio-ecosystem/authservice/internal/oidc"
"github.com/istio-ecosystem/authservice/internal/server"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion config/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version: v1
managed:
enabled: true
go_package_prefix:
default: github.com/tetrateio/authservice-go/config/gen/go
default: github.com/istio-ecosystem/authservice/config/gen/go
except:
- buf.build/envoyproxy/protoc-gen-validate
plugins:
Expand Down
32 changes: 16 additions & 16 deletions config/gen/go/v1/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions config/gen/go/v1/mock/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions config/gen/go/v1/oidc/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion e2e/istio/istio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"io"
"net/http"

"github.com/tetrateio/authservice-go/e2e"
"github.com/istio-ecosystem/authservice/e2e"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion e2e/istio/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"

"github.com/tetrateio/authservice-go/e2e"
"github.com/istio-ecosystem/authservice/e2e"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion e2e/keycloak/keycloak_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/tetrateio/authservice-go/e2e"
"github.com/istio-ecosystem/authservice/e2e"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion e2e/legacy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Variables exported to parameterize the image used in the docker-compose.yaml
# This allows running the same setup with the authservice-go and the legacy authservice images.
# This allows running the same setup with the authservice and the legacy authservice images.

ifneq ($(E2E_SUITE_MODE),legacy)
export E2E_IMAGE ?= $(DOCKER_HUB)/$(NAME):latest-$(ARCH)
Expand Down
2 changes: 1 addition & 1 deletion e2e/legacy/legacy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/tetrateio/authservice-go/e2e"
"github.com/istio-ecosystem/authservice/e2e"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion e2e/redis/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/redis/go-redis/v9"
"github.com/stretchr/testify/require"

"github.com/tetrateio/authservice-go/internal/oidc"
"github.com/istio-ecosystem/authservice/internal/oidc"
)

const redisURL = "redis://localhost:6379"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/tetrateio/authservice-go
module github.com/istio-ecosystem/authservice

go 1.21.8

Expand Down
4 changes: 2 additions & 2 deletions internal/authz/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"google.golang.org/genproto/googleapis/rpc/status"
"google.golang.org/grpc/codes"

mockv1 "github.com/tetrateio/authservice-go/config/gen/go/v1/mock"
"github.com/tetrateio/authservice-go/internal"
mockv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1/mock"
"github.com/istio-ecosystem/authservice/internal"
)

var _ Handler = (*mockHandler)(nil)
Expand Down
2 changes: 1 addition & 1 deletion internal/authz/mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/stretchr/testify/require"
"google.golang.org/grpc/codes"

mockv1 "github.com/tetrateio/authservice-go/config/gen/go/v1/mock"
mockv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1/mock"
)

func TestProcessMock(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions internal/authz/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ import (
"google.golang.org/genproto/googleapis/rpc/status"
"google.golang.org/grpc/codes"

oidcv1 "github.com/tetrateio/authservice-go/config/gen/go/v1/oidc"
"github.com/tetrateio/authservice-go/internal"
inthttp "github.com/tetrateio/authservice-go/internal/http"
"github.com/tetrateio/authservice-go/internal/oidc"
oidcv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1/oidc"
"github.com/istio-ecosystem/authservice/internal"
inthttp "github.com/istio-ecosystem/authservice/internal/http"
"github.com/istio-ecosystem/authservice/internal/oidc"
)

var (
Expand Down
10 changes: 5 additions & 5 deletions internal/authz/oidc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/test/bufconn"

configv1 "github.com/tetrateio/authservice-go/config/gen/go/v1"
oidcv1 "github.com/tetrateio/authservice-go/config/gen/go/v1/oidc"
"github.com/tetrateio/authservice-go/internal"
inthttp "github.com/tetrateio/authservice-go/internal/http"
"github.com/tetrateio/authservice-go/internal/oidc"
configv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1"
oidcv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1/oidc"
"github.com/istio-ecosystem/authservice/internal"
inthttp "github.com/istio-ecosystem/authservice/internal/http"
"github.com/istio-ecosystem/authservice/internal/oidc"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions internal/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"

configv1 "github.com/tetrateio/authservice-go/config/gen/go/v1"
oidcv1 "github.com/tetrateio/authservice-go/config/gen/go/v1/oidc"
configv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1"
oidcv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1/oidc"
)

const ScopeOIDC = "openid"
Expand Down
6 changes: 3 additions & 3 deletions internal/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/structpb"

configv1 "github.com/tetrateio/authservice-go/config/gen/go/v1"
mockv1 "github.com/tetrateio/authservice-go/config/gen/go/v1/mock"
oidcv1 "github.com/tetrateio/authservice-go/config/gen/go/v1/oidc"
configv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1"
mockv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1/mock"
oidcv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1/oidc"
)

type errCheck struct {
Expand Down
6 changes: 3 additions & 3 deletions internal/k8s/secret_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client/config"
"sigs.k8s.io/controller-runtime/pkg/manager"

configv1 "github.com/tetrateio/authservice-go/config/gen/go/v1"
oidcv1 "github.com/tetrateio/authservice-go/config/gen/go/v1/oidc"
"github.com/tetrateio/authservice-go/internal"
configv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1"
oidcv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1/oidc"
"github.com/istio-ecosystem/authservice/internal"
)

const clientSecretKey = "client-secret"
Expand Down
2 changes: 1 addition & 1 deletion internal/k8s/secret_controller_lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/envtest"
"sigs.k8s.io/controller-runtime/pkg/manager"

"github.com/tetrateio/authservice-go/internal"
"github.com/istio-ecosystem/authservice/internal"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/k8s/secret_controller_reconcile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client/fake"

configv1 "github.com/tetrateio/authservice-go/config/gen/go/v1"
configv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1"
)

func TestOIDCProcessWithKubernetesSecret(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/tetratelabs/telemetry/scope"
ctrl "sigs.k8s.io/controller-runtime"

configv1 "github.com/tetrateio/authservice-go/config/gen/go/v1"
configv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/tetratelabs/telemetry"
"github.com/tetratelabs/telemetry/scope"

configv1 "github.com/tetrateio/authservice-go/config/gen/go/v1"
configv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1"
)

func TestGetLogger(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/oidc/jwks.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
"github.com/tetratelabs/run"
"github.com/tetratelabs/telemetry"

configv1 "github.com/tetrateio/authservice-go/config/gen/go/v1"
oidcv1 "github.com/tetrateio/authservice-go/config/gen/go/v1/oidc"
"github.com/tetrateio/authservice-go/internal"
configv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1"
oidcv1 "github.com/istio-ecosystem/authservice/config/gen/go/v1/oidc"
"github.com/istio-ecosystem/authservice/internal"
)

var (
Expand Down
Loading

0 comments on commit 4f28347

Please sign in to comment.