Merge master
This commit is contained in:
commit
6315068ead
15
cmd/shell.go
15
cmd/shell.go
|
|
@ -54,13 +54,14 @@ type Config struct {
|
||||||
|
|
||||||
// General
|
// General
|
||||||
AMQP struct {
|
AMQP struct {
|
||||||
Server string
|
Server string
|
||||||
RA Queue
|
Insecure bool
|
||||||
VA Queue
|
RA Queue
|
||||||
SA Queue
|
VA Queue
|
||||||
CA Queue
|
SA Queue
|
||||||
OCSP Queue
|
CA Queue
|
||||||
TLS *TLSConfig
|
OCSP Queue
|
||||||
|
TLS *TLSConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
WFE struct {
|
WFE struct {
|
||||||
|
|
|
||||||
|
|
@ -268,16 +268,20 @@ func AmqpChannel(conf cmd.Config) (*amqp.Channel, error) {
|
||||||
|
|
||||||
log := blog.GetAuditLogger()
|
log := blog.GetAuditLogger()
|
||||||
|
|
||||||
if conf.AMQP.TLS == nil {
|
if conf.AMQP.Insecure == true {
|
||||||
// Configuration did not specify TLS options, but Dial will
|
// If the Insecure flag is true, then just go ahead and connect
|
||||||
// use TLS anyway if the URL scheme is "amqps"
|
|
||||||
conn, err = amqp.Dial(conf.AMQP.Server)
|
conn, err = amqp.Dial(conf.AMQP.Server)
|
||||||
} else {
|
} else {
|
||||||
// They provided TLS options, so let's load them.
|
// The insecure flag is false or not set, so we need to load up the options
|
||||||
log.Info("AMQPS: Loading TLS Options.")
|
log.Info("AMQPS: Loading TLS Options.")
|
||||||
|
|
||||||
if strings.HasPrefix(conf.AMQP.Server, "amqps") == false {
|
if strings.HasPrefix(conf.AMQP.Server, "amqps") == false {
|
||||||
err = fmt.Errorf("AMQPS: TLS configuration provided, but not using an AMQPS URL")
|
err = fmt.Errorf("AMQPS: Not using an AMQPS URL. To use AMQP instead of AMQPS, set insecure=true.")
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if conf.AMQP.TLS == nil {
|
||||||
|
err = fmt.Errorf("AMQPS: No TLS configuration provided. To use AMQP instead of AMQPS, set insecure=true.")
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
4
test.sh
4
test.sh
|
|
@ -236,9 +236,9 @@ case $? in
|
||||||
0) # Success
|
0) # Success
|
||||||
update_status --state success
|
update_status --state success
|
||||||
;;
|
;;
|
||||||
1) # Python client failed, but Node client didn't, which does
|
1) # Python client failed
|
||||||
# not constitute failure
|
|
||||||
update_status --state success --description "Python integration failed."
|
update_status --state success --description "Python integration failed."
|
||||||
|
FAILURE=1
|
||||||
;;
|
;;
|
||||||
2) # Node client failed
|
2) # Node client failed
|
||||||
update_status --state failure --description "NodeJS integration failed."
|
update_status --state failure --description "NodeJS integration failed."
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
"amqp": {
|
"amqp": {
|
||||||
"server": "amqp://guest:guest@localhost:5672",
|
"server": "amqp://guest:guest@localhost:5672",
|
||||||
|
"insecure": true,
|
||||||
"-uncomment_for_AMQPS-tls": {
|
"-uncomment_for_AMQPS-tls": {
|
||||||
"cacertfile": "/etc/boulder/rabbitmq-cacert.pem",
|
"cacertfile": "/etc/boulder/rabbitmq-cacert.pem",
|
||||||
"certfile": "/etc/boulder/rabbitmq-cert.pem",
|
"certfile": "/etc/boulder/rabbitmq-cert.pem",
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ def run(path, race_detection):
|
||||||
install = """GORACE="halt_on_error=1" go install -race"""
|
install = """GORACE="halt_on_error=1" go install -race"""
|
||||||
|
|
||||||
binary = os.path.basename(path)
|
binary = os.path.basename(path)
|
||||||
cmd = """%s ./%s; exec %s --config %s""" % (install, path, binary, config)
|
cmd = """%s ./%s && exec %s --config %s""" % (install, path, binary, config)
|
||||||
p = subprocess.Popen(cmd, shell=True)
|
p = subprocess.Popen(cmd, shell=True)
|
||||||
p.cmd = cmd
|
p.cmd = cmd
|
||||||
print('started %s with pid %d' % (p.cmd, p.pid))
|
print('started %s with pid %d' % (p.cmd, p.pid))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue