File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import (
31
31
"github.com/nitrictech/newcli/pkg/provider/run"
32
32
"github.com/nitrictech/nitric/pkg/membrane"
33
33
boltdb_service "github.com/nitrictech/nitric/pkg/plugins/document/boltdb"
34
+ secret_service "github.com/nitrictech/nitric/pkg/plugins/secret/dev"
34
35
minio "github.com/nitrictech/nitric/pkg/plugins/storage/minio"
35
36
"github.com/nitrictech/nitric/pkg/worker"
36
37
)
@@ -75,6 +76,11 @@ var runCmd = &cobra.Command{
75
76
dp , err := boltdb_service .New ()
76
77
cobra .CheckErr (err )
77
78
79
+ // Connect secrets plugin
80
+ os .Setenv ("LOCAL_SECRET_DIR" , "./.nitric/" )
81
+ secp , err := secret_service .New ()
82
+ cobra .CheckErr (err )
83
+
78
84
// Create a new Worker Pool
79
85
// TODO: We may want to override GetWorker on the default ProcessPool
80
86
// For now we'll use the default and expand from there
@@ -93,6 +99,7 @@ var runCmd = &cobra.Command{
93
99
mem , err := membrane .New (& membrane.MembraneOptions {
94
100
ServiceAddress : "0.0.0.0:50051" ,
95
101
ChildCommand : []string {"echo" , "running membrane 🚀" },
102
+ SecretPlugin : secp ,
96
103
StoragePlugin : sp ,
97
104
DocumentPlugin : dp ,
98
105
GatewayPlugin : gw ,
You can’t perform that action at this time.
0 commit comments