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

🌟 enhancement(VSecM): Isolate VSecM SDK #1120

Merged
merged 1 commit into from
Aug 27, 2024
Merged
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
3 changes: 2 additions & 1 deletion app/keygen/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
package main

import (
"os"

"github.com/vmware-tanzu/secrets-manager/app/keygen/internal"
e "github.com/vmware-tanzu/secrets-manager/core/constants/env"
"github.com/vmware-tanzu/secrets-manager/core/crypto"
"github.com/vmware-tanzu/secrets-manager/core/env"
log "github.com/vmware-tanzu/secrets-manager/core/log/std"
"os"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion app/safe/internal/server/handle/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
package handle

import (
routeFallback "github.com/vmware-tanzu/secrets-manager/app/safe/internal/server/route/fallback"
"net/http"

routeDelete "github.com/vmware-tanzu/secrets-manager/app/safe/internal/server/route/delete"
routeFallback "github.com/vmware-tanzu/secrets-manager/app/safe/internal/server/route/fallback"
routeFetch "github.com/vmware-tanzu/secrets-manager/app/safe/internal/server/route/fetch"
routeKeystone "github.com/vmware-tanzu/secrets-manager/app/safe/internal/server/route/keystone"
routeList "github.com/vmware-tanzu/secrets-manager/app/safe/internal/server/route/list"
Expand Down
5 changes: 3 additions & 2 deletions app/sentinel/internal/initialization/connectivity.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ package initialization
import (
"context"
"errors"
"github.com/vmware-tanzu/secrets-manager/core/constants/key"
"github.com/vmware-tanzu/secrets-manager/lib/backoff"

"github.com/spiffe/go-spiffe/v2/workloadapi"

"github.com/vmware-tanzu/secrets-manager/core/constants/key"
"github.com/vmware-tanzu/secrets-manager/lib/backoff"
)

func (i *Initializer) ensureApiConnectivity(ctx context.Context, cid *string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ package initialization

import (
"context"
"github.com/spiffe/go-spiffe/v2/workloadapi"
"github.com/vmware-tanzu/secrets-manager/app/sentinel/internal/safe"
"github.com/vmware-tanzu/secrets-manager/core/entity/v1/data"
"github.com/vmware-tanzu/secrets-manager/core/spiffe"
"os"
"time"

"github.com/spiffe/go-spiffe/v2/workloadapi"

"github.com/vmware-tanzu/secrets-manager/app/sentinel/internal/safe"
"github.com/vmware-tanzu/secrets-manager/core/entity/v1/data"
"github.com/vmware-tanzu/secrets-manager/core/env"
"github.com/vmware-tanzu/secrets-manager/core/log/std"
"github.com/vmware-tanzu/secrets-manager/core/spiffe"
)

type OSFileOpener struct{}
Expand Down
3 changes: 2 additions & 1 deletion app/sentinel/internal/initialization/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ package initialization

import (
"context"
"github.com/vmware-tanzu/secrets-manager/core/constants/key"
"os"
"time"

"github.com/vmware-tanzu/secrets-manager/core/constants/key"
)

// RunInitCommands reads and processes initialization commands from a file.
Expand Down
1 change: 1 addition & 0 deletions app/sentinel/internal/initialization/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"time"

"github.com/spiffe/go-spiffe/v2/workloadapi"

entity "github.com/vmware-tanzu/secrets-manager/core/entity/v1/data"
)

Expand Down
3 changes: 1 addition & 2 deletions app/sentinel/internal/safe/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ package safe

import (
"bytes"
"net/http"

"errors"
"net/http"
)

func doDelete(cid *string, client *http.Client, p string, md []byte) error {
Expand Down
4 changes: 2 additions & 2 deletions app/sentinel/internal/safe/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import (
"github.com/spiffe/go-spiffe/v2/spiffeid"
"github.com/spiffe/go-spiffe/v2/spiffetls/tlsconfig"
"github.com/spiffe/go-spiffe/v2/workloadapi"
"github.com/vmware-tanzu/secrets-manager/core/constants/key"
"github.com/vmware-tanzu/secrets-manager/core/spiffe"

"github.com/vmware-tanzu/secrets-manager/core/constants/key"
u "github.com/vmware-tanzu/secrets-manager/core/constants/url"
"github.com/vmware-tanzu/secrets-manager/core/env"
log "github.com/vmware-tanzu/secrets-manager/core/log/rpc"
"github.com/vmware-tanzu/secrets-manager/core/spiffe"
"github.com/vmware-tanzu/secrets-manager/core/validation"
)

Expand Down
Loading