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

added viam variables

parent 3c4792e4
No related branches found
No related tags found
2 merge requests!25Devops22 code cleanup,!15WIP: Master
......@@ -7,6 +7,10 @@ dataStorageUrl: localhost:7777
grpcListenAddress: localhost:7877
restListenAddress: localhost:7878
# VIAM Variables
viamUUID: viam-system
viamSession: viam-session
# Choose a certificate method for providing PEM strings
# 1 = Read from file (*.crt and *.key files)
# 2 = Read from Vault server (this will require additional config information for Vault)
......
......@@ -21,6 +21,9 @@ func SetConfigValues() {
viper.SetDefault("vereignCertFile", "vereign_ca.cer")
viper.SetDefault("vereignCertKey", "vereign_ca.key")
viper.SetDefault("viamUUID", "viam-system")
viper.SetDefault("viamSession", "viam-session")
viper.SetDefault("maxMessageSize", "32")
// Read Config File
......
......@@ -67,8 +67,8 @@ func authenticateClient(ctx context.Context, s *handler.KeyStorageServerImpl, in
}
viamAuth := &authentication.Authentication{
Uuid: "viam-system",
Session: "viam-session",
Uuid: viper.GetString("viamUUID"),
Session: viper.GetString("viamSession"),
}
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