This commit is contained in:
jay brown
2025-03-18 13:46:59 -07:00
parent 2b1c33429f
commit 31082c0ff5
5 changed files with 75 additions and 21 deletions
+34
View File
@@ -2,11 +2,45 @@ package main
import (
"fmt"
"os"
"sort"
"queryorchestration/internal/rbac" // Replace with your actual module name
)
//type DummyServiceConfig struct {
// service.BaseConfig
//}
func PrintEnvironmentVariables() {
// Get all environment variables
envVars := os.Environ()
// Sort them for consistent output
sort.Strings(envVars)
// Print each variable in "key = value" format
for _, env := range envVars {
// Find the first equals sign to split the string
for i := 0; i < len(env); i++ {
if env[i] == '=' {
key := env[:i]
value := env[i+1:]
fmt.Printf("%s = %s\n", key, value)
break
}
}
}
}
func main() {
PrintEnvironmentVariables()
//cfg := &DummyServiceConfig{}
//errGettingConfig := serviceconfig.InitializeConfig(cfg)
//if errGettingConfig != nil {
// log.Fatal(errGettingConfig)
//}
// use the config here for the key provider parameters
// Example with local key provider for testing
localProvider := rbac.NewLocalKeyProvider("private_key.pem", "public_key.pem")