Closed geropl closed 2 years ago
Thanks, Gero. I previously observed that I needed to restart workspace after uploading an SSH key for the connection to establish, I was guessing at the time that it could be a DB sync issue. Might be related.
I previously observed that I needed to restart workspace after uploading an SSH key for the connection to establish, I was guessing at the time that it could be a DB sync issue.
That sounds unrelated. Here the effect would be: If I connect to US cluster and store a secret, I cannot use it in the EU cluster.
@mustard-mh I don't see https://github.com/gitpod-io/gitpod/blob/cf7d6de5b03e39dadb4f1c5bd18d3fb1b9237585/components/gitpod-db/src/typeorm/entity/db-code-sync-resource.ts#L47 on DBUserSshPublicKey
@geropl Is it not necessary anymore?
@geropl Is it not necessary anymore?
It's not technical necessary, but good practice to try to keep TS and SQL in sync.
@geropl @mustard-mh Can we verify somehow that all necessary db sync indexes are in place in production database?
The error lies in the sql generated here:
Where we are not properly escaping the column names, which causes an error for the key
column as it's a SQL keyword.
(internal discussion)
For unknown reasons db-sync refuses to insert public SSH keys. We have to find the offending query (e.g. by using staging) and understand what MySQL does not like about it.)