Hi everyone,
I am setting up Boundary to use Vault as credential store. This works fine and I can generate dynamic credentials using the Boundary client.
However, when I try to connect to localhost through the worker proxy, I get the following error from the mysql client:
➜ ~ mysql -u v-token-toke-boundary-c-hAovDq2i -h 127.0.0.1 -P 53332 -p
Enter password:
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 2
And in the boundary workers logs the following:
Jun 27 15:58:41 ip-10-237-91-59.eu-central-1.compute.internal boundary[3595]: {"id":"h2rwZwDaiR","source":"https://hashicorp.com/boundary/worker-ip-10-237-91-59","specversion":"1.0","type":"system","data":{"version":"v0.1","op":"worker.(Worker).getSessionTls","data":{"msg":"invalid session in SNI","session_id":""}},"datacontentype":"application/cloudevents","time":"2022-06-27T15:58:41.233798284Z"}
If I try to connect to the database directly, from the worker instance, the credentials generated by Vault that I got in Boundary work.
On both the controllers and the workers I have tls_disabled = true.
The target is a RDS instance (MySQL).
The worker starts with no issue:
Jun 27 16:08:29 ip-10-237-99-241.eu-central-1.compute.internal boundary[10427]: ==> Boundary server started! Log data will stream in below:
Jun 27 16:08:29 ip-10-237-99-241.eu-central-1.compute.internal boundary[10427]: {"id":"eVXzUfacgy","source":"https://hashicorp.com/boundary/worker-ip-10-237-99-241","specversion":"1.0","type":"system","data":{"version":"v0.1","op":"worker.(Worker).createClientConn","data":{"address":"10.237.69.228:9201","msg":"connected to controller"}},"datacontentype":"application/cloudevents","time":"2022-06-27T16:08:29.730731293Z"}
But I can’t proxy the connection for some reason. This is my worker configuration:
disable_mlock = true
kms "awskms" {
kms_key_id = "[REDACTED]"
purpose = "worker-auth"
}
listener "tcp" {
address = "10.237.99.241:9202"
purpose = "proxy"
tls_disable = true
}
worker {
controllers = ["10.237.69.228","10.237.91.88","10.237.108.179"]
name = "worker-ip-10-237-99-241"
public_addr = "10.237.99.241"
}
plugins {
execution_dir = "/opt/boundary/plugin-exec"
}
The weird thing is that this same setup worked before while I was testing, but now it doesn’t.
Any hints regarding this error?
PS: I can’t update to the newest Boundary version due to this.
TIA