Skip to content
Snippets Groups Projects
Commit f8ce57c8 authored by Olgun Cengiz's avatar Olgun Cengiz :drum:
Browse files

added viam variables

parent 3c4792e4
Branches devops22-code-cleanup
No related tags found
2 merge requests!25Devops22 code cleanup,!15WIP: Master
...@@ -7,6 +7,10 @@ dataStorageUrl: localhost:7777 ...@@ -7,6 +7,10 @@ dataStorageUrl: localhost:7777
grpcListenAddress: localhost:7877 grpcListenAddress: localhost:7877
restListenAddress: localhost:7878 restListenAddress: localhost:7878
# VIAM Variables
viamUUID: viam-system
viamSession: viam-session
# Choose a certificate method for providing PEM strings # Choose a certificate method for providing PEM strings
# 1 = Read from file (*.crt and *.key files) # 1 = Read from file (*.crt and *.key files)
# 2 = Read from Vault server (this will require additional config information for Vault) # 2 = Read from Vault server (this will require additional config information for Vault)
......
...@@ -21,6 +21,9 @@ func SetConfigValues() { ...@@ -21,6 +21,9 @@ func SetConfigValues() {
viper.SetDefault("vereignCertFile", "vereign_ca.cer") viper.SetDefault("vereignCertFile", "vereign_ca.cer")
viper.SetDefault("vereignCertKey", "vereign_ca.key") viper.SetDefault("vereignCertKey", "vereign_ca.key")
viper.SetDefault("viamUUID", "viam-system")
viper.SetDefault("viamSession", "viam-session")
viper.SetDefault("maxMessageSize", "32") viper.SetDefault("maxMessageSize", "32")
// Read Config File // Read Config File
......
...@@ -67,8 +67,8 @@ func authenticateClient(ctx context.Context, s *handler.KeyStorageServerImpl, in ...@@ -67,8 +67,8 @@ func authenticateClient(ctx context.Context, s *handler.KeyStorageServerImpl, in
} }
viamAuth := &authentication.Authentication{ viamAuth := &authentication.Authentication{
Uuid: "viam-system", Uuid: viper.GetString("viamUUID"),
Session: "viam-session", Session: viper.GetString("viamSession"),
} }
sessionClient := &client.DataStorageClientImpl{} sessionClient := &client.DataStorageClientImpl{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment