jaconi-io / helm-charts

Helm charts created and maintained by jaconi
MIT License
7 stars 13 forks source link

netbird failing to depoy #39

Closed outbackdingo closed 9 months ago

outbackdingo commented 9 months ago

│ netbird-management Error: failed reading provided config file: /etc/netbird/management.json: invalid character '}' looking for beginning of value │


│ configure                 "Username": "",                                                                                                                                                                                                                                              
│ configure                 "Password": ""                                                                                                                                                                                                                                               
│ configure             }                                                                                                                                                                                                                                                                
│ configure         ],                                                                                                                                                                                                                                                                   
│ configure         "CredentialsTTL": "12h",                                                                                                                                                                                                                                             
│ configure         "Secret": "secret",                                                                                                                                                                                                                                                  
│ configure         "TimeBasedCredentials": false                                                                                                                                                                                                                                        
│ configure     },                                                                                                                                                                                                                                                                       
│ configure     "Signal": {                                                                                                                                                                                                                                                              
│ configure         "Proto": "https",                                                                                                                                                                                                                                                    
│ configure         "URI": "example.com:10000",                                                                                                                                                                                                                                          
│ configure         "Username": "",                                                                                                                                                                                                                                                      
│ configure         "Password": null                                                                                                                                                                                                                                                     
│ configure     },                                                                                                                                                                                                                                                                       
│ configure     "Datadir": "",                                                                                                                                                                                                                                                           
│ configure     "HttpConfig": {                                                                                                                                                                                                                                                          
│ configure         "Address": "0.0.0.0:80",                                                                                                                                                                                                                                             
│ configure         "AuthAudience": "account",                                                                                                                                                                                                                                           
│ configure         "AuthUserIDClaim": "sub",                                                                                                                                                                                                                                            
│ configure         "CertFile": "",                                                                                                                                                                                                                                                      
│ configure         "CertKey": "",                                                                                                                                                                                                                                                       
│ configure         "OIDCConfigEndpoint": "http://keycloak.localtest.me:9000/realms/helm-charts/.well-known/openid-configuration"                                                                                                                                                        │
│ configure     },                                                                                                                                                                                                                                                                       
│ configure     "IdpManagerConfig": {                                                                                                                                                                                                                                                    
│ configure         "ManagerType": "none",                                                                                                                                                                                                                                               
│ configure         "NoneClientCredentials": {                                                                                                                                                                                                                                           
│ configure             "ClientID": "",                                                                                                                                                                                                                                                  
│ configure             "ClientSecret": "",                                                                                                                                                                                                                                              
│ configure             "GrantType": "",                                                                                                                                                                                                                                                 
│ configure             "Audience": "",                                                                                                                                                                                                                                                  
│ configure             "AuthIssuer": "",                                                                                                                                                                                                                                                
│ configure             "AdminEndpoint": "",                                                                                                                                                                                                                                             
│ configure             "TokenEndpoint": ""                                                                                                                                                                                                                                              
│ configure         }                                                                                                                                                                                                                                                                    
│ configure     },                                                                                                                                                                                                                                                                       
│ configure     "DeviceAuthorizationFlow": {                                                                                                                                                                                                                                             
│ configure         "Provider": "",                                                                                                                                                                                                                                                      
│ configure         "ProviderConfig": {                                                                                                                                                                                                                                                  
│ configure             "Audience": "",                                                                                                                                                                                                                                                  
│ configure             "ClientID": "",                                                                                                                                                                                                                                                  
│ configure             "DeviceAuthEndpoint": "",                                                                                                                                                                                                                                        
│ configure             "Domain": "",                                                                                                                                                                                                                                                    
│ configure             "TokenEndpoint": "",                                                                                                                                                                                                                                             
│ configure             "Scope": "",                                                                                                                                                                                                                                                     
│ configure             "UseIDToken":                                                                                                                                                                                                                                                    
│ configure         }                                                                                                                                                                                                                                                                    
│ configure     }                                                                                                                                                                                                                                                                        
│ configure }                                                                                                                                                                                                                                                                            
│ Stream closed EOF for default/my-netbird-management-798cfb5547-f47qs (netbird-management)                                                                                                                                                                                              
│ Stream closed EOF for default/my-netbird-management-798cfb5547-f47qs (configure)  ```
jnodorp-jaconi commented 9 months ago

Thank you for your report, @outbackdingo! The issue should be fixed with Chart version 0.14.2.

The issue was caused by a missing default value for UseIDToken.

When rendering the netbird management configuration, the missing strings were no problem, as, for example {"Scope": ""} is still valid JSON. However, for a missing boolean {"UseIDToken": } is not.