feat: migrate project secrets and user-scoped colors
This commit is contained in:
1 parent
f723afa369
commit
07e25a3cf3
13 files changed
+280
-15
No files matched your search
+5
-1
@@ -44,6 +44,11 @@ func main() {
|
||||
fmt.Fprintln(os.Stderr, "DATABASE_URL environment variable is required")
|
||||
os.Exit(1)
|
||||
}
|
||||
internalServiceSecret := strings.TrimSpace(os.Getenv("SECRET"))
|
||||
if internalServiceSecret == "" {
|
||||
fmt.Fprintln(os.Stderr, "SECRET environment variable is required")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
@@ -84,7 +89,6 @@ func main() {
|
||||
// auth.SetAuthGuardBaseURL retargets the live AuthGuard client sharedauth.Service holds
|
||||
// internally on every push, so AuthGuard moving to a new URL takes effect without a restart -- it
|
||||
// is a no-op when this service was constructed in auth-disabled mode (AUTH_DISABLED=true above).
|
||||
internalServiceSecret := strings.TrimSpace(os.Getenv("INTERNAL_SERVICE_SECRET"))
|
||||
carrierNodeURL := strings.TrimSpace(os.Getenv("CARRIERNODE_URL"))
|
||||
coreConfig := coreconfig.NewStore(coreconfig.Info{AuthGuardURL: authGuardURL, CarrierNodeURL: carrierNodeURL})
|
||||
coreConfig.OnUpdate(func(info coreconfig.Info) {
|
||||
|
||||
Reference in new issue
Block a user