[Notes] [Git][BuildGrid/buildgrid][master] BuildGrid will now exit if the server key or certificate don't exist.



Title: GitLab

Richard Kennedy pushed to branch master at BuildGrid / buildgrid

Commits:

1 changed file:

Changes:

  • buildgrid/_app/settings/parser.py
    ... ... @@ -82,9 +82,9 @@ class Channel(YamlFactory):
    82 82
                 client_certs = credentials['tls-client-certs']
    
    83 83
                 self.credentials = context.load_server_credentials(server_key, server_cert, client_certs)
    
    84 84
     
    
    85
    -            if not credentials:
    
    86
    -                click.echo("ERROR: no TLS keys were specified and no defaults could be found.\n" +
    
    87
    -                           "Set `insecure-mode: false` in order to deactivate TLS encryption.\n", err=True)
    
    85
    +            if not self.credentials:
    
    86
    +                click.echo("ERROR: load_server_credentials could not find certificates.\n" +
    
    87
    +                           "Please check whether the specified certificate paths exist.\n", err=True)
    
    88 88
                     sys.exit(-1)
    
    89 89
     
    
    90 90
     
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]