From 3a07a3c2b565d0bb528430b226da8d6c8bfdb591 Mon Sep 17 00:00:00 2001 From: Fabi Date: Fri, 21 Apr 2023 14:16:19 +0200 Subject: [PATCH] feat: Auth0 migration (#73) * feat: Read users from auth0 export * feat: Read passwords form json file * feat: migration tool auth0 * feat: remove unused code * feat: remove unused file * feat: add migration tool and readme * feat: readme * feat: readme * feat: clean up migration file * fix: remove unused file * refactor: move commands into single binary * merge main and update dependencies --------- Co-authored-by: Livio Spring --- .github/workflows/release.yml | 1 - cmd/jwt/.goreleaser.yml => .goreleaser.yml | 2 +- README.md | 12 +- cmd/basicauth/basicauth.go | 37 ++- cmd/jwt/key2jwt.go | 71 +++--- .../auth0/example-data/passwords.json | 2 + cmd/migration/auth0/example-data/users.json | 2 + cmd/migration/auth0/migration.go | 216 ++++++++++++++++++ cmd/migration/auth0/readme.md | 23 ++ cmd/migration/migration.go | 17 ++ cmd/root.go | 36 +++ go.mod | 25 +- go.sum | 123 +++------- main.go | 14 ++ 14 files changed, 435 insertions(+), 146 deletions(-) rename cmd/jwt/.goreleaser.yml => .goreleaser.yml (94%) create mode 100644 cmd/migration/auth0/example-data/passwords.json create mode 100644 cmd/migration/auth0/example-data/users.json create mode 100644 cmd/migration/auth0/migration.go create mode 100644 cmd/migration/auth0/readme.md create mode 100644 cmd/migration/migration.go create mode 100644 cmd/root.go create mode 100644 main.go diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b0d8ad..911d2cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,6 +48,5 @@ jobs: with: version: latest args: release --rm-dist - workdir: ./cmd/jwt/ env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/cmd/jwt/.goreleaser.yml b/.goreleaser.yml similarity index 94% rename from cmd/jwt/.goreleaser.yml rename to .goreleaser.yml index babad4f..1b68456 100644 --- a/cmd/jwt/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,4 @@ -project_name: key2jwt +project_name: zitadel-tools builds: - env: diff --git a/README.md b/README.md index 15e0bfd..2000ef6 100644 --- a/README.md +++ b/README.md @@ -14,18 +14,18 @@ key2jwt requires two flags: The tool prints the result to standard output. ```zsh -./key2jwt -audience=https://zitadel.cloud -key=key.json +./zitadel-tools key2jwt -audience=https://zitadel.cloud -key=key.json ``` Optionally you can pass an `output` flag. This will save the jwt in the provided file path: ```zsh -./key2jwt -audience=https://zitadel.cloud -key=key.json -output=jwt.txt +./zitadel-tools key2jwt -audience=https://zitadel.cloud -key=key.json -output=jwt.txt ``` You can also create a JWT by providing a RSA private key (.pem file). You then also need to specify the issuer of the token: ```zsh -./key2jwt -audience=https://zitadel.cloud -key=key.pem -issuer=client_id +./zitadel-tools key2jwt -audience=https://zitadel.cloud -key=key.pem -issuer=client_id ``` ## basicauth @@ -42,5 +42,9 @@ basicauth requires two flags: The tool prints the URL- and Base64 encoded result to standard output ```zsh -go run ./cmd/basicauth/*.go -id $CLIENT_ID -secret $CLIENT_SECRET +./zitadel-tools basicauth -id $CLIENT_ID -secret $CLIENT_SECRET ``` + +## Migrate data (e.g. Auth0) to ZITADEL import + +Please check the description in the [migration section](./cmd/migration/auth0). diff --git a/cmd/basicauth/basicauth.go b/cmd/basicauth/basicauth.go index 8d75d46..55b8ec2 100644 --- a/cmd/basicauth/basicauth.go +++ b/cmd/basicauth/basicauth.go @@ -1,28 +1,43 @@ -package main +package basicauth import ( b64 "encoding/base64" - "flag" "fmt" + "log" "net/url" + + "github.com/spf13/cobra" ) +// Cmd represents the basicauth command +var Cmd = &cobra.Command{ + Use: "basicauth", + Short: "Convert and to be used in Authorization header for Client Secret Basic", + Run: func(cmd *cobra.Command, args []string) { + basicAuth(cmd) + }, +} + var ( - clientId = flag.String("id", "", "Client ID as string") - clientSecret = flag.String("secret", "", "Client secret as string") + clientId string + clientSecret string ) -func main() { - flag.Parse() +func init() { + Cmd.Flags().StringVar(&clientId, "id", "", "Client ID as string") + Cmd.Flags().StringVar(&clientSecret, "secret", "", "Client secret as string") +} - if *clientId == "" || *clientSecret == "" { - flag.PrintDefaults() - panic("please provide a client ID and secret") +func basicAuth(cmd *cobra.Command) { + if clientId == "" || clientSecret == "" { + log.Println("please provide a client ID and secret") + fmt.Println(cmd.Flags().FlagUsages()) + return } - sEscaped := url.QueryEscape(*clientId) + ":" + url.QueryEscape(*clientSecret) + sEscaped := url.QueryEscape(clientId) + ":" + url.QueryEscape(clientSecret) sEnc := b64.StdEncoding.EncodeToString([]byte(sEscaped)) - fmt.Print(sEnc) + fmt.Println(sEnc) } diff --git a/cmd/jwt/key2jwt.go b/cmd/jwt/key2jwt.go index d1c9cac..f6496ae 100644 --- a/cmd/jwt/key2jwt.go +++ b/cmd/jwt/key2jwt.go @@ -1,62 +1,75 @@ -package main +package jwt import ( "encoding/json" - "flag" "fmt" - "io/ioutil" + "log" "os" "path/filepath" "time" + "github.com/spf13/cobra" "github.com/zitadel/oidc/pkg/client" "github.com/zitadel/oidc/pkg/oidc" ) +// Cmd represents the jwt command +var Cmd = &cobra.Command{ + Use: "key2jwt", + Short: "Convert a to ", + Run: func(cmd *cobra.Command, args []string) { + key2JWT(cmd) + }, +} + var ( - keyPath = flag.String("key", "", "path to the key.json / RSA private key.pem") - audience = flag.String("audience", "", "audience where the token will be used (e.g. the issuer of zitadel.cloud - https://zitadel.cloud or from your domain https://)") - issuer = flag.String("issuer", "", "issuer of the JWT (e.g. userID / client_id; only needed when generating from RSA private key)") - outputPath = flag.String("output", "", "path where the generated jwt will be saved; will print to stdout if empty") + keyPath string + audience string + issuer string + outputPath string ) -func main() { - flag.Parse() +func init() { + Cmd.Flags().StringVar(&keyPath, "key", "", "path to the key.json / RSA private key.pem") + Cmd.Flags().StringVar(&audience, "audience", "", "audience where the token will be used (e.g. the issuer of zitadel.cloud - https://zitadel.cloud or from your domain https://)") + Cmd.Flags().StringVar(&issuer, "issuer", "", "issuer of the JWT (e.g. userID / client_id; only needed when generating from RSA private key)") + Cmd.Flags().StringVar(&outputPath, "output", "", "path where the generated jwt will be saved; will print to stdout if empty") +} - if *keyPath == "" || *audience == "" { - fmt.Println("Please provide at least an audience and key param:") - flag.PrintDefaults() +func key2JWT(cmd *cobra.Command) { + if keyPath == "" || audience == "" { + log.Println("Please provide at least an audience and key param:") + fmt.Println(cmd.LocalFlags().FlagUsages()) return } - key, err := ioutil.ReadFile(*keyPath) + key, err := os.ReadFile(keyPath) if err != nil { - fmt.Printf("error reading key file: %v", err.Error()) + log.Fatalf("error reading key file: %v", err.Error()) return } var jwt string - switch ext := filepath.Ext(*keyPath); ext { + switch ext := filepath.Ext(keyPath); ext { case ".json": jwt, err = generateJWTFromJSON(key) case ".pem": - if *issuer == "" { - fmt.Println("Please provide the issuer of token when using a pem file") - return + if issuer == "" { + log.Fatal("Please provide the issuer of token when using a pem file") } - jwt, err = generateJWTFromPEM(key, *issuer) + jwt, err = generateJWTFromPEM(key, issuer) default: - fmt.Printf("file extension %v is not supported, please provide either a json or pem file\n", ext) + log.Fatalf("file extension %v is not supported, please provide either a json or pem file\n", ext) return } if err != nil { - fmt.Printf("error generating jwt: %v", err.Error()) + log.Fatalf("error generating jwt: %v", err.Error()) return } f := os.Stdout - if *outputPath != "" { - f, err = os.OpenFile(*outputPath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0777) + if outputPath != "" { + f, err = os.OpenFile(outputPath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0777) if err != nil { - fmt.Printf("error reading key file: %v", err.Error()) + log.Fatalf("error reading key file: %v", err.Error()) return } } @@ -65,7 +78,7 @@ func main() { err = errClose } if err != nil { - fmt.Printf("error writing key: %v", err.Error()) + log.Fatalf("error writing key: %v", err.Error()) return } } @@ -77,7 +90,7 @@ func generateJWTFromJSON(key []byte) (string, error) { } switch keyType { case "application": - keyData, err := client.ConfigFromKeyFile(*keyPath) + keyData, err := client.ConfigFromKeyFile(keyPath) if err != nil { return "", err } @@ -85,9 +98,9 @@ func generateJWTFromJSON(key []byte) (string, error) { if err != nil { return "", err } - return client.SignedJWTProfileAssertion(keyData.ClientID, []string{*audience}, time.Hour, signer) + return client.SignedJWTProfileAssertion(keyData.ClientID, []string{audience}, time.Hour, signer) case "serviceaccount": - jwta, err := oidc.NewJWTProfileAssertionFromFileData(key, []string{*audience}) + jwta, err := oidc.NewJWTProfileAssertionFromFileData(key, []string{audience}) if err != nil { return "", err } @@ -102,7 +115,7 @@ func generateJWTFromPEM(key []byte, issuer string) (string, error) { if err != nil { return "", err } - return client.SignedJWTProfileAssertion(issuer, []string{*audience}, time.Hour, signer) + return client.SignedJWTProfileAssertion(issuer, []string{audience}, time.Hour, signer) } func getType(data []byte) (string, error) { diff --git a/cmd/migration/auth0/example-data/passwords.json b/cmd/migration/auth0/example-data/passwords.json new file mode 100644 index 0000000..2a3e72c --- /dev/null +++ b/cmd/migration/auth0/example-data/passwords.json @@ -0,0 +1,2 @@ +{"_ID":{"$oid":"60425dc43519d90068f82973"},"email_verified":false,"email":"test2@example.com","passwordHash":"$2b$10$Z6hUTEEeoJXN5/AmSm/4.eZ75RYgFVriQM9LPhNEC7kbAbS/VAaJ2","password_set_date":{"$date":"2021-03-05T16:35:16.775Z"},"tenant":"dev-rwsbs6ym","connection":"Username-Password-Authentication","_tmp_is_unique":true} +{"_ID":{"$oid":"60425da93519d90068f82966"},"email_verified":false,"email":"test@example.com","passwordHash":"$2b$10$CSZ2JarG4XYbGa.JkfpqnO2wrlbfp5eb5LScHSGo9XGeZ.a.Ic54S","password_set_date":{"$date":"2021-03-05T16:34:49.502Z"},"tenant":"dev-rwsbs6ym","connection":"Username-Password-Authentication","_tmp_is_unique":true} \ No newline at end of file diff --git a/cmd/migration/auth0/example-data/users.json b/cmd/migration/auth0/example-data/users.json new file mode 100644 index 0000000..4d2c4aa --- /dev/null +++ b/cmd/migration/auth0/example-data/users.json @@ -0,0 +1,2 @@ +{"user_id":"auth0|6437e9c2b7add15a89b4915b","email":"test2@example.com","name":"Test Example2"} +{"user_id":"auth0|6437fa205c7266dc77f88a6c","email":"test@example.com","name":"Test User"} diff --git a/cmd/migration/auth0/migration.go b/cmd/migration/auth0/migration.go new file mode 100644 index 0000000..3d69510 --- /dev/null +++ b/cmd/migration/auth0/migration.go @@ -0,0 +1,216 @@ +package auth0 + +import ( + "bufio" + "encoding/json" + "log" + "os" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/spf13/cobra" + "github.com/zitadel/zitadel-go/v2/pkg/client/zitadel/admin" + "github.com/zitadel/zitadel-go/v2/pkg/client/zitadel/management" + v1 "github.com/zitadel/zitadel-go/v2/pkg/client/zitadel/v1" + "google.golang.org/protobuf/encoding/protojson" +) + +// Cmd represents the auth0 migration command +var Cmd = &cobra.Command{ + Use: "auth0", + Short: "Transform the exported Auth0 users and passwords to a ZITADEL import JSON", + Run: func(cmd *cobra.Command, args []string) { + migrate() + }, +} + +var ( + userPath string + passwordPath string + outputPath string + organisationID string + verifiedEmails bool + multiLine bool +) + +func init() { + Cmd.Flags().StringVar(&userPath, "users", "./users.json", "path to the users.json") + Cmd.Flags().StringVar(&passwordPath, "passwords", "./passwords.json", "path to the passwords.json") + Cmd.Flags().StringVar(&outputPath, "output", "./importBody.json", "path where the generated json will be saved") + Cmd.Flags().StringVar(&organisationID, "org", "", "id of the ZITADEL organisation, where the users will be imported") + Cmd.Flags().BoolVar(&verifiedEmails, "email-verified", true, "specify if imported emails are automatically verified (default)") + Cmd.Flags().BoolVar(&multiLine, "multiline", false, "print the JSON output in multiple lines") +} + +const ( + Algorithm = "bcrypt" +) + +type User struct { + UserId string `json:"user_id"` + Email string `json:"email"` + Name string `json:"name"` +} + +type Password struct { + Oid string `json:"oid"` + Email string `json:"email"` + PasswordHash string `json:"passwordHash"` +} + +func migrate() { + if organisationID == "" { + log.Fatal("Please provide the organisation id") + } + log.Printf("migrate auth0 from users(%s) and passwords(%s) into %s\n", userPath, passwordPath, outputPath) + + users, err := ReadAuth0Users(userPath) + if err != nil { + log.Fatalf("ERROR: %v", err) + } + + passwords, pwerr := ReadAuth0UPasswords(passwordPath) + if err != nil { + log.Fatalf("ERROR: %v", pwerr) + } + + importData := CreateZITADELMigration(organisationID, users, passwords) + + err = WriteProtoToFile(outputPath, importData) + if err != nil { + log.Fatalf("ERROR: %v", pwerr) + } + log.Println("Import file done") +} + +func ReadAuth0Users(filename string) ([]User, error) { + file, fileScanner, err := ReadFile(filename) + if err != nil { + return nil, err + } + defer file.Close() + + var result []User + for fileScanner.Scan() { + data := User{} + err = json.Unmarshal(fileScanner.Bytes(), &data) + if err != nil { + return nil, err + } + result = append(result, data) + } + return result, nil +} + +func ReadAuth0UPasswords(filename string) ([]Password, error) { + file, fileScanner, err := ReadFile(filename) + if err != nil { + return nil, err + } + defer file.Close() + + var result []Password + for fileScanner.Scan() { + data := Password{} + err = json.Unmarshal(fileScanner.Bytes(), &data) + if err != nil { + return nil, err + } + result = append(result, data) + } + return result, nil +} + +func ReadFile(filename string) (*os.File, *bufio.Scanner, error) { + readFile, err := os.Open(filename) + if err != nil { + return nil, nil, err + } + fileScanner := bufio.NewScanner(readFile) + fileScanner.Split(bufio.ScanLines) + + return readFile, fileScanner, nil +} + +func CreateZITADELMigration(orgID string, users []User, passwords []Password) *admin.ImportDataRequest { + importDataOrg := &admin.ImportDataOrg{ + Orgs: createOrgs(orgID, users, passwords), + } + importData := &admin.ImportDataRequest{ + Timeout: "30m", + Data: &admin.ImportDataRequest_DataOrgs{ + DataOrgs: importDataOrg, + }, + } + + return importData +} + +func WriteProtoToFile(filepath string, importData *admin.ImportDataRequest) error { + outFile, err := os.OpenFile(filepath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0666) + if err != nil { + return err + } + defer outFile.Close() + + jsonpb := &runtime.JSONPb{ + MarshalOptions: protojson.MarshalOptions{ + Multiline: multiLine, + }, + } + encodedData, err := jsonpb.Marshal(importData) + if err != nil { + return err + } + + // writing the actual transaction item to the file + if _, err := outFile.Write(encodedData); err != nil { + return err + } + + return nil +} + +func createOrgs(id string, users []User, passwords []Password) []*admin.DataOrg { + org := &admin.DataOrg{ + OrgId: id, + HumanUsers: createHumanUsers(users, passwords), + } + return []*admin.DataOrg{org} +} + +func createHumanUsers(users []User, passwords []Password) []*v1.DataHumanUser { + result := make([]*v1.DataHumanUser, 0) + for _, u := range users { + user := &v1.DataHumanUser{ + User: &management.ImportHumanUserRequest{ + UserName: u.Email, + Profile: &management.ImportHumanUserRequest_Profile{ + FirstName: u.Name, + LastName: u.Name, + }, + Email: &management.ImportHumanUserRequest_Email{ + Email: u.Email, + IsEmailVerified: verifiedEmails, + }, + }, + } + passwordHash := getPassword(u.Email, passwords) + if passwordHash != "" { + user.User.HashedPassword = &management.ImportHumanUserRequest_HashedPassword{ + Value: passwordHash, + Algorithm: Algorithm, + } + } + result = append(result, user) + } + return result +} + +func getPassword(userEmail string, passwords []Password) string { + for _, p := range passwords { + if userEmail == p.Email { + return p.PasswordHash + } + } + return "" +} diff --git a/cmd/migration/auth0/readme.md b/cmd/migration/auth0/readme.md new file mode 100644 index 0000000..11c5349 --- /dev/null +++ b/cmd/migration/auth0/readme.md @@ -0,0 +1,23 @@ +The auth0 migration tool creates a json file which represents the body for an import request to the ZITADEL API. +With this example an organization in ZITADEL has to be existing and only the users with passwords will be imported. + +The migration requires the following input: + - organisation id (--org) + - users.json file with your exported Auth0 users (--users; default is ./users.json) + - password.json file with the exported Auth0 bcrypt passwords (--password; default is ./passwords.json) + +Execute the transformation and provide at least the organisation id: +```bash +./zitadel-tools migrate auth0 --org= +``` + +you can also specify custom path for the users, passwords and output JSON files: +```bash +./zitadel-tools migrate auth0 --org= --users=./users.json --password=./passwords.json --output=./importBody.json +``` + +You will now get a new file importBody.json +Copy the content from the file and send it as body in the import to ZITADEL + +For a more detailed description of the whole migration steps from Auth0 to ZITADEL please visit out Documentation: +https://zitadel.com/docs/guides/migrate/sources/auth0 diff --git a/cmd/migration/migration.go b/cmd/migration/migration.go new file mode 100644 index 0000000..c65e374 --- /dev/null +++ b/cmd/migration/migration.go @@ -0,0 +1,17 @@ +package migration + +import ( + "github.com/spf13/cobra" + + "github.com/zitadel/zitadel-tools/cmd/migration/auth0" +) + +// Cmd represents the migration root command +var Cmd = &cobra.Command{ + Use: "migrate", + Short: "Transform data from other providers (like Auth0) to ZITADEL import data", +} + +func init() { + Cmd.AddCommand(auth0.Cmd) +} diff --git a/cmd/root.go b/cmd/root.go new file mode 100644 index 0000000..aaf7932 --- /dev/null +++ b/cmd/root.go @@ -0,0 +1,36 @@ +package cmd + +import ( + "fmt" + "os" + + "github.com/spf13/cobra" + + "github.com/zitadel/zitadel-tools/cmd/basicauth" + "github.com/zitadel/zitadel-tools/cmd/jwt" + "github.com/zitadel/zitadel-tools/cmd/migration" +) + +// rootCmd represents the base command when called without any subcommands +var rootCmd = &cobra.Command{ + Use: "zitadel-tools", + Short: "ZITADEL tools provides you with some helper tools", +} + +// Execute adds all child commands to the root command and sets flags appropriately. +// This is called by main.main(). It only needs to happen once to the rootCmd. +func Execute() { + err := rootCmd.Execute() + if err != nil { + os.Exit(1) + } +} +func SetVersionInfo(version, commit, date string) { + rootCmd.Version = fmt.Sprintf("%s (Built on %s from Git SHA %s)", version, date, commit) +} + +func init() { + rootCmd.AddCommand(jwt.Cmd) + rootCmd.AddCommand(basicauth.Cmd) + rootCmd.AddCommand(migration.Cmd) +} diff --git a/go.mod b/go.mod index b7820b8..e364267 100644 --- a/go.mod +++ b/go.mod @@ -1,18 +1,29 @@ module github.com/zitadel/zitadel-tools -go 1.17 +go 1.20 -require github.com/zitadel/oidc v1.13.4 +require ( + github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2 + github.com/spf13/cobra v1.7.0 + github.com/zitadel/oidc v1.13.4 + github.com/zitadel/zitadel-go/v2 v2.0.13 + google.golang.org/protobuf v1.30.0 +) require ( + github.com/envoyproxy/protoc-gen-validate v0.10.1 // 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 - golang.org/x/crypto v0.7.0 // indirect - golang.org/x/net v0.8.0 // indirect - golang.org/x/oauth2 v0.6.0 // indirect - golang.org/x/text v0.8.0 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + golang.org/x/crypto v0.8.0 // indirect + golang.org/x/net v0.9.0 // indirect + golang.org/x/oauth2 v0.7.0 // indirect + golang.org/x/sys v0.7.0 // indirect + golang.org/x/text v0.9.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.30.0 // indirect + google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect + google.golang.org/grpc v1.54.0 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect ) diff --git a/go.sum b/go.sum index dd454bd..01a9f10 100644 --- a/go.sum +++ b/go.sum @@ -1,125 +1,62 @@ -cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= +github.com/envoyproxy/protoc-gen-validate v0.10.1 h1:c0g45+xCJhdgFGw7a5QAfdS4byAbud7miNWJ1WwEVf8= +github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= +github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= -github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-github/v31 v31.0.0/go.mod h1:NQPZol8/1sMoWYGN2yaALIBytu17gAWfhbweiEed3pM= -github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= -github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/gorilla/schema v1.2.0 h1:YufUaxZYCKGFuAq3c96BOhjgd5nmXiOY9NGzF247Tsc= github.com/gorilla/schema v1.2.0/go.mod h1:kgLaKoK1FELgZqMAVxx/5cbj0kT+57qxUrAlIO2eleU= github.com/gorilla/securecookie v1.1.1 h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ= github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= -github.com/jeremija/gosubmit v0.2.7/go.mod h1:Ui+HS073lCFREXBbdfrJzMB57OI/bdxTiLtrDHHhFPI= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +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/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= -github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= -github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zitadel/logging v0.3.4/go.mod h1:aPpLQhE+v6ocNK0TWrBrd363hZ95KcI17Q1ixAQwZF0= github.com/zitadel/oidc v1.13.4 h1:+k2GKqP9Ld9S2MSFlj+KaNsoZ3J9oy+Ezw51EzSFuC8= github.com/zitadel/oidc v1.13.4/go.mod h1:3h2DhUcP02YV6q/CA/BG4yla0o6rXjK+DkJGK/dwJfw= +github.com/zitadel/zitadel-go/v2 v2.0.13 h1:TZ44dgEJHtJKsiAW2CbBIYiEjyHSrH8qZ5Wi1qUAP50= +github.com/zitadel/zitadel-go/v2 v2.0.13/go.mod h1:T4tAZyYIsq+7dRzfnlJse1b60gjVczHJCMGE5Nqg0ak= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= -golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/crypto v0.8.0 h1:pd9TJtTueMTVQXzk8E2XESSMQDj/U7OUu0PqJqPXQjQ= +golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= -golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.6.0 h1:Lh8GPgSKBfWSwFvtuWOfeI3aAAnbXTSutYxJiOJFgIw= -golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/net v0.9.0 h1:aWJ/m6xSmxWBx+V0XRHTlrYrPG56jKsLdTFmsSsCzOM= +golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= +golang.org/x/oauth2 v0.7.0 h1:qe6s0zUXlPX80/dITx3440hWZ7GwMwgDDyrSGTPJG/g= +golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220207234003-57398862261d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= +golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= +golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A= +google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= +google.golang.org/grpc v1.54.0 h1:EhTqbhiYeixwWQtAEZAxmV9MGqcjEU2mFx52xCzNyag= +google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/square/go-jose.v2 v2.6.0 h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI= gopkg.in/square/go-jose.v2 v2.6.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/main.go b/main.go new file mode 100644 index 0000000..ea84d56 --- /dev/null +++ b/main.go @@ -0,0 +1,14 @@ +package main + +import "github.com/zitadel/zitadel-tools/cmd" + +var ( + version = "dev" + commit = "none" + date = "unknown" +) + +func main() { + cmd.SetVersionInfo(version, commit, date) + cmd.Execute() +}