Skip to content

Commit

Permalink
fixes to circular dependeices pointer to forked repo
Browse files Browse the repository at this point in the history
  • Loading branch information
roney492 committed May 1, 2024
1 parent 77f4665 commit e893241
Show file tree
Hide file tree
Showing 69 changed files with 148 additions and 151 deletions.
6 changes: 3 additions & 3 deletions cmd/controlplane/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package main
import (
"fmt"

controlplanedocs "github.com/open-privacy/opv/cmd/controlplane/docs" // docs is generated by Swag CLI, you have to import it.
controlplanedocs "github.com/roney492/opv/cmd/controlplane/docs" // docs is generated by Swag CLI, you have to import it.
echoSwagger "github.com/swaggo/echo-swagger"

"github.com/open-privacy/opv/pkg/config"
"github.com/open-privacy/opv/pkg/controlplane"
"github.com/roney492/opv/pkg/config"
"github.com/roney492/opv/pkg/controlplane"
"github.com/tj/go-gracefully"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/dataplane/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package main
import (
"fmt"

dataplanedocs "github.com/open-privacy/opv/cmd/dataplane/docs" // docs is generated by Swag CLI, you have to import it.
dataplanedocs "github.com/roney492/opv/cmd/dataplane/docs" // docs is generated by Swag CLI, you have to import it.
echoSwagger "github.com/swaggo/echo-swagger"

"github.com/open-privacy/opv/pkg/config"
"github.com/open-privacy/opv/pkg/dataplane"
"github.com/roney492/opv/pkg/config"
"github.com/roney492/opv/pkg/dataplane"
"github.com/tj/go-gracefully"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/proxyplane/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/open-privacy/opv/pkg/config"
"github.com/open-privacy/opv/pkg/proxyplane"
"github.com/roney492/opv/pkg/config"
"github.com/roney492/opv/pkg/proxyplane"
"github.com/tj/go-gracefully"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/proxyplane/opv-proxyplane-http.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"encoding": "no-op",
"extra_config": {

"github.com/open-privacy/opv": {
"github.com/roney492/opv": {
"opv.body.Modifier": {
"scope": [
"request"
Expand Down Expand Up @@ -109,7 +109,7 @@
"url_pattern": "/post",
"encoding": "no-op",
"extra_config": {
"github.com/open-privacy/opv": {
"github.com/roney492/opv": {
"opv.body.Modifier": {
"scope": [
"request"
Expand Down
1 change: 0 additions & 1 deletion docs/openprivacy.io/content/docs/development/playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Playground demo of tokenization and detokenization via the Data Plane: `https://

Playground demo of sending API requests to Checkr via the Proxy Plane: `proxy-playground.openprivacy.io`.

- The definition of the proxy routing can be found at [opv-proxyplane-http.example.json](https://github.com/open-privacy/opv/blob/53eb70c1ce9aaaa897863982efb468df487ce7c0/cmd/proxyplane/opv-proxyplane-http.example.json#L105).
- We simulated that once the internal system have tokenzied `facts` (i.e. sensitive PIIs), it can talks to a dedicated proxy plane route for automated detokenization when sending the requests to external vendors like [Checkr API](https://api.checkr.com).
- You can also inspect the network requests directly from your browser (tldr - press `F12`) to check the actual payload.

Expand Down
2 changes: 1 addition & 1 deletion functional_test/crud_fact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
. "github.com/Eun/go-hit"
"github.com/avast/retry-go"
"github.com/dchest/uniuri"
"github.com/open-privacy/opv/pkg/config"
"github.com/roney492/opv/pkg/config"
)

func generateScopeID() string {
Expand Down
8 changes: 4 additions & 4 deletions functional_test/functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"time"

"github.com/caarlos0/env/v6"
"github.com/open-privacy/opv/pkg/config"
"github.com/open-privacy/opv/pkg/controlplane"
"github.com/open-privacy/opv/pkg/dataplane"
"github.com/open-privacy/opv/pkg/proxyplane"
"github.com/roney492/opv/pkg/config"
"github.com/roney492/opv/pkg/controlplane"
"github.com/roney492/opv/pkg/dataplane"
"github.com/roney492/opv/pkg/proxyplane"
)

// TESTENV is the env configuration for functional testing
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/open-privacy/opv
module github.com/roney492/opv

go 1.22

Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,6 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0=
github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0=
github.com/zhouzhuojie/iso8601ms v0.1.0 h1:6InZGTu4YM+2fNO7jhACyFd71XCTU7C/vmMFYsqoMBk=
github.com/zhouzhuojie/iso8601ms v0.1.0/go.mod h1:4t5F1H6mzxsFB9CCFhj1pUlK8TPwRGmQ/Js+zMK32mY=
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
Expand Down
2 changes: 1 addition & 1 deletion pkg/apimodel/grant_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/dchest/uniuri"
"github.com/labstack/echo/v4"
"github.com/open-privacy/opv/pkg/crypto"
"github.com/roney492/opv/pkg/crypto"
)

// GrantToken represents a secret token
Expand Down
2 changes: 1 addition & 1 deletion pkg/apimodel/httperror.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/asaskevich/govalidator"
"github.com/go-playground/validator/v10"
"github.com/labstack/echo/v4"
"github.com/open-privacy/opv/pkg/repo"
"github.com/roney492/opv/pkg/repo"
)

// NewHTTPError creates a new echo.HTTPError from the given error
Expand Down
6 changes: 3 additions & 3 deletions pkg/controlplane/controlplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/labstack/gommon/log"
"github.com/open-privacy/opv/pkg/config"
"github.com/open-privacy/opv/pkg/crypto"
"github.com/open-privacy/opv/pkg/repo"
"github.com/roney492/opv/pkg/config"
"github.com/roney492/opv/pkg/crypto"
"github.com/roney492/opv/pkg/repo"
)

// ControlPlane is the control plane for OPV
Expand Down
6 changes: 3 additions & 3 deletions pkg/controlplane/crud_api_audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"time"

"github.com/labstack/echo/v4"
"github.com/open-privacy/opv/pkg/apimodel"
"github.com/open-privacy/opv/pkg/ent"
"github.com/open-privacy/opv/pkg/repo"
"github.com/roney492/opv/pkg/apimodel"
"github.com/roney492/opv/pkg/ent"
"github.com/roney492/opv/pkg/repo"
)

// QueryAPIAudits is the endpoint for querying a list of api audit logs
Expand Down
4 changes: 2 additions & 2 deletions pkg/controlplane/crud_grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net/http"

"github.com/labstack/echo/v4"
"github.com/open-privacy/opv/pkg/apimodel"
"github.com/open-privacy/opv/pkg/repo"
"github.com/roney492/opv/pkg/apimodel"
"github.com/roney492/opv/pkg/repo"
)

// CreateGrant is the endpoint for creating a new grant
Expand Down
2 changes: 1 addition & 1 deletion pkg/controlplane/healthz.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"

"github.com/labstack/echo/v4"
"github.com/open-privacy/opv/pkg/apimodel"
"github.com/roney492/opv/pkg/apimodel"
)

// Healthz godoc
Expand Down
2 changes: 1 addition & 1 deletion pkg/controlplane/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/labstack/echo/v4"
"github.com/open-privacy/opv/pkg/repo"
"github.com/roney492/opv/pkg/repo"
)

type auditLogContext struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/crypto/encryptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"golang.org/x/crypto/nacl/secretbox"

"github.com/open-privacy/opv/pkg/config"
"github.com/roney492/opv/pkg/config"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/crypto/hasher.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/base64"
"fmt"

"github.com/open-privacy/opv/pkg/config"
"github.com/roney492/opv/pkg/config"
"golang.org/x/crypto/scrypt"
"golang.org/x/crypto/sha3"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/dataplane/crud_fact.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/asaskevich/govalidator"
"github.com/labstack/echo/v4"
"github.com/open-privacy/opv/pkg/apimodel"
"github.com/open-privacy/opv/pkg/repo"
"github.com/roney492/opv/pkg/apimodel"
"github.com/roney492/opv/pkg/repo"
)

// ShowFact godoc
Expand Down
4 changes: 2 additions & 2 deletions pkg/dataplane/crud_facttype.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net/http"

"github.com/labstack/echo/v4"
"github.com/open-privacy/opv/pkg/apimodel"
"github.com/open-privacy/opv/pkg/repo"
"github.com/roney492/opv/pkg/apimodel"
"github.com/roney492/opv/pkg/repo"
)

// QueryFactTypes godoc
Expand Down
4 changes: 2 additions & 2 deletions pkg/dataplane/crud_scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net/http"

"github.com/labstack/echo/v4"
"github.com/open-privacy/opv/pkg/apimodel"
"github.com/open-privacy/opv/pkg/repo"
"github.com/roney492/opv/pkg/apimodel"
"github.com/roney492/opv/pkg/repo"
)

// QueryScopes godoc
Expand Down
6 changes: 3 additions & 3 deletions pkg/dataplane/dataplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/labstack/gommon/log"
"github.com/open-privacy/opv/pkg/config"
"github.com/open-privacy/opv/pkg/crypto"
"github.com/open-privacy/opv/pkg/repo"
"github.com/roney492/opv/pkg/config"
"github.com/roney492/opv/pkg/crypto"
"github.com/roney492/opv/pkg/repo"
)

// DataPlane represents the data plane struct
Expand Down
2 changes: 1 addition & 1 deletion pkg/dataplane/healthz.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"

"github.com/labstack/echo/v4"
"github.com/open-privacy/opv/pkg/apimodel"
"github.com/roney492/opv/pkg/apimodel"
)

// Healthz godoc
Expand Down
4 changes: 2 additions & 2 deletions pkg/dataplane/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/open-privacy/opv/pkg/apimodel"
"github.com/open-privacy/opv/pkg/repo"
"github.com/roney492/opv/pkg/apimodel"
"github.com/roney492/opv/pkg/repo"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/ent/apiaudit.go

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

2 changes: 1 addition & 1 deletion pkg/ent/apiaudit/where.go

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

2 changes: 1 addition & 1 deletion pkg/ent/apiaudit_create.go

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

4 changes: 2 additions & 2 deletions pkg/ent/apiaudit_delete.go

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

4 changes: 2 additions & 2 deletions pkg/ent/apiaudit_query.go

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

4 changes: 2 additions & 2 deletions pkg/ent/apiaudit_update.go

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

12 changes: 6 additions & 6 deletions pkg/ent/client.go

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

12 changes: 6 additions & 6 deletions pkg/ent/entql.go

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

4 changes: 2 additions & 2 deletions pkg/ent/enttest/enttest.go

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

6 changes: 3 additions & 3 deletions pkg/ent/fact.go

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

2 changes: 1 addition & 1 deletion pkg/ent/fact/where.go

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

Loading

0 comments on commit e893241

Please sign in to comment.