Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make dsn optional #660

Closed
wants to merge 1 commit into from
Closed

feat: make dsn optional #660

wants to merge 1 commit into from

Conversation

blumTom
Copy link

@blumTom blumTom commented Dec 24, 2023

Related Issue or Design Document

Checklist

  • I have read the contributing guidelines and signed the CLA.
  • I have referenced an issue containing the design document if my change introduces a new feature.
  • I have read the security policy.
  • I confirm that this pull request does not address a security vulnerability.
    If this pull request addresses a security vulnerability,
    I confirm that I got approval (please contact security@ory.sh) from the maintainers to push the changes.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added the necessary documentation within the code base (if appropriate).

Further comments

Fix for #659

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Thomas Blum seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@blumTom blumTom changed the title Make dsn optional Fix: Make dsn optional Dec 25, 2023
@blumTom blumTom changed the title Fix: Make dsn optional fix: Make dsn optional Dec 25, 2023
@dlahn
Copy link
Contributor

dlahn commented Apr 18, 2024

Any chance of this getting merged? This would be very helpful for us.

@dlahn
Copy link
Contributor

dlahn commented Apr 29, 2024

@piotrmsc @Demonsthere Do you think this could be merged? This would help us a lot.

@piotrmsc
Copy link
Collaborator

piotrmsc commented Apr 30, 2024

Hey :) what is your exact use case? Currently it reads from the configured k8s secret if enabled.

@dlahn
Copy link
Contributor

dlahn commented Apr 30, 2024

Hey :) what is your exact use case? Currently it reads from the configured k8s secret if enabled.

@piotrmsc The use case is that our DB credentials are in a different secret. I can't even override DSN because this chart is defining it already. This PR would allow us to override it using the value from our DB secret.

@dlahn
Copy link
Contributor

dlahn commented May 10, 2024

Just want to bump this to see if it could be merged? We would like to be able to override this.

@Demonsthere
Copy link
Collaborator

Demonsthere commented May 13, 2024

Imho, in general we can accept the feature, providing that it is an option and not the default behaviour. However in order to merge it, the PR would need some more work:

  1. Add test cases for values in our hacks/values dir, to check the process in CI (installation and upgrade scenarios without DSN/externally provided DSN)
  2. Add docs explaining the flow and examples
  3. Propagate the changes to all charts using DSN
  4. The CLA needs to be accepted

Is this OK with you?

@Demonsthere Demonsthere changed the title fix: Make dsn optional feat: make dsn optional May 13, 2024
@dlahn
Copy link
Contributor

dlahn commented May 13, 2024

@Demonsthere I'm not sure if the initial contributor here is still interested, so I have made a new PR #678 to address this. I did some investigations and this pattern is already in place in Hydra, and actually even in parts of Kratos, so I think this PR will just bring everything in line. I am also using the helpers to do the reference.

@Demonsthere
Copy link
Collaborator

Closing in favour of #678

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants