How to merge multiple Hydra instances with different system.secrets #2445
vinckr
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
Should we add this to the docs? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All credit for this goes to @bnm12 , thanks a ton for the write-up 🐝
Problem:
Solution:
What we ended up testing and executing was a process of taking all the system.secret keys and adding them to the target instance environment variables like this:
SECRETS_SYSTEM=new-secret,secret-1,secret-2,secret-3,secret-4,secret-5
Then we ran this pg_dump command against the databases we needed to migrate:
From there we went into each of the dump files and manually edited hydra_clients.pk to be entirely set to the value
default
(SQL keyword) to make it follow the sequence in the target DB correctly.We also deleted the last line of the dump which sets the value of the pk sequence to the number of the donor DB, so get rid of that one.
After that the next step is importing the data which we did with this command:
And that did it, we successfully merged 5 Hydra instances with different system.secrets
Beta Was this translation helpful? Give feedback.
All reactions