Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(all): Update go dependencies and remove authz middleware #77

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ on:
workflow_dispatch:

env:
GO_VERSION: 1.18
GO_LINT_VERSION: v1.51.2
GO_VERSION: 1.22
GO_LINT_VERSION: v1.56.2

jobs:
lint-go:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/xp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ on:

env:
ARTIFACT_RETENTION_DAYS: 7
GO_VERSION: 1.18
GO_LINT_VERSION: v1.51.2
GO_VERSION: 1.22
GO_LINT_VERSION: v1.56.2

jobs:
lint-python:
Expand Down
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ PB_VERSION=3.19.4
PROTOC_VERSION=1.5.2
protoc_dir=${PWD}/.protoc

OPENAPI_VERSION=1.8.1
OPENAPI_VERSION=1.16.2

# ==================================
# General
Expand Down Expand Up @@ -58,19 +58,14 @@ generate-api:
# Setup Management & Treatment Services
# ==================================

local-authz-server:
@docker-compose up -d postgres-auth && docker-compose run keto-server migrate sql -e
@docker-compose up -d keto-server
@docker-compose run keto-server-bootstrap-policies engines acp ory policies import glob /policies/example_policy.json

local-db:
@docker-compose up -d postgres

local-pubsub:
@docker-compose up -d pubsub

.PHONY: mgmt-svc
mgmt-svc: local-authz-server local-db local-pubsub
mgmt-svc: local-db local-pubsub
cd management-service && PUBSUB_EMULATOR_HOST="localhost:8085" go run main.go serve --config="config/example.yaml"

.PHONY: treatment-svc
Expand Down
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ make swagger-ui

1. `make local-db`
- Setup a local DB for storing experiment configurations
2. `make local-authz-server`
- Setup AuthZ server that is accessible at http://localhost:4466/.

To test authorization for Management Service locally, make the following changes before starting Management Service:

- A sample policy exists at keto/policies/example_policy.json. It can be modified.
- Set AuthorizationConfig.Enabled=true in the config file that's being used
- Issue requests to the app with the header User-Email: test-user@gojek.com

#### c. Using XP

Expand Down
19 changes: 11 additions & 8 deletions clients/go.mod
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
module github.com/caraml-dev/xp/clients

go 1.18
go 1.22

require (
github.com/caraml-dev/xp/common v0.0.0
github.com/deepmap/oapi-codegen v1.11.0
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.8.0
github.com/oapi-codegen/runtime v1.1.1
github.com/stretchr/testify v1.8.4
)

require (
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/getkin/kin-openapi v0.94.0 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/getkin/kin-openapi v0.118.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/swag v0.21.1 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/uuid v1.5.0 // indirect
github.com/invopop/yaml v0.1.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
github.com/perimeterx/marshmallow v1.1.4 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.4.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Expand Down
159 changes: 32 additions & 127 deletions clients/go.sum

Large diffs are not rendered by default.

Loading
Loading