Hello, I am trying to configure ory hydra for one...
# _newcomer
l
Hello, I am trying to configure ory hydra for one of my project. I have couple of questions for a production setup. • Can we connect Hydra to our mariaDB ? I think its possible. • Can we store the Hydra config in consul and configure hydra in K8s with Helm ?
m
• No MariaDB is not possible, see this discussion: https://github.com/ory/kratos/discussions/3007 • Have no example or documentation available for this but should be possible. Feel free to have a look at / contribute here as well: https://github.com/ory/examples/
l
@magnificent-energy-493 I mean Mariadb not MongoDB. The document that you shared talks about MongoDB. this is my MySQL version.
Copy code
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 227339
Server version: 5.5.5-10.6.16-MariaDB-log managed by <https://aws.amazon.com/rds/>
@magnificent-energy-493 Something like below is a recommended way ?
Copy code
helm install -f md_values.yaml  ory/hydra  --set config.paths.config=<https://consul.staging.domain.com/ui/hydra/kv/ory-hydra/acc/config>
Have you ever seen any installation like this ?
where the config contains the hydra configuration and md_values contains the custom hydra deployment configs.
m
Again MariaDB is not fully supported, see the Slack thread here that was linked in the discussion: https://archive.ory.sh/t/8074603/hi-we-use-hydra-and-kratos-as-part-of-our-stackspin-project- I would recommend to use MySQL instead, that is fully supported and issues with it will be fixed.
l
@magnificent-energy-493 Thanks for the update. We will look into MySQL.
Copy code
helm install -f md_values.yaml  ory/hydra  --set config.paths.config=<https://consul.staging.domain.com/ui/hydra/kv/ory-hydra/acc/config>
How about this. Is this smething recommended or do you see this kind of setup before ?
m
looks good i guess. what are your concerns?
l
I need to define a proper way to deploy and maintain the Hydra service that is part of the login system in our K8s Cluster. In order to do that, we need to look into the Hydra service and define a plan. Some key questions: How do we deploy and maintain open source solutions like Hydra ? Can we connect Hydra to our mariaDB ? We already have a AWS RDS MariaDB instance. Can we store the Hydra config in consul ? These are my concerns.