diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-31 14:03:46 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-31 14:03:46 -0600 |
| commit | 3049ea5bb068476ac4b458c4d682c49fd2b54dde (patch) | |
| tree | 1ab1d4d9a345c9986c7e1fb19e39c1eff3a41e46 /magefiles | |
| parent | 74a11705f0b4d218865a14afce1c3a2953b7d64b (diff) | |
chore: add smallstep ca
Diffstat (limited to 'magefiles')
| -rw-r--r-- | magefiles/magefile.go | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/magefiles/magefile.go b/magefiles/magefile.go index 5f5c0ff..ed649ef 100644 --- a/magefiles/magefile.go +++ b/magefiles/magefile.go @@ -5,7 +5,6 @@ package main import ( "context" - "os" "path/filepath" "github.com/magefile/mage/mg" @@ -77,19 +76,6 @@ func Nats() error { ) } -// Start CA -func CertificateAuthority() error { - env := map[string]string{ - "STEPPATH": filepath.Join(x.Must(os.Getwd()), "/tmp/step"), - } - return sh.RunWithV( - env, - "step-ca", - "$STEPPATH/config/ca.json", - "--password-file=$STEPPATH/password.txt", - ) -} - // Generate gRPC from protocal buffers func Protos() error { for _, file := range x.Must(filepath.Glob("./protos/*.proto")) { @@ -113,7 +99,7 @@ func Protos() error { // Run All the servers func Servers(ctx context.Context) { - mg.CtxDeps(ctx, CertificateAuthority, Nats, Idp, UI, Api, Authzd, CertificateAuthority, Gateway) + mg.CtxDeps(ctx, Nats, Idp, UI, Api, Authzd, Gateway) } // Run the end to end tests @@ -123,21 +109,3 @@ func Test(ctx context.Context) error { }) return sh.RunV("go", "test", "-shuffle=on", "-v", "./...") } - -func Graphviz() error { - files := []string{ - "doc/share/authz/sns.dot", - } - for _, file := range files { - if err := sh.RunV("dot", "-Tpng", "-O", file); err != nil { - return err - } - } - - return nil -} - -// Generate documentation -func Docs(ctx context.Context) { - mg.CtxDeps(ctx, Graphviz) -} |
