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

Check for broken dns credentials value in cli.ini and remove #548

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

thespad
Copy link
Member

@thespad thespad commented Feb 25, 2025

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

Sometimes, though various actions of the user, such as setting DNS validation but not setting a provider, we end up with a cli.ini that contains a:

dns--credentials=/config/dns-conf/.ini

Instead of a valid provider e.g.:

dns-ovh-credentials=/config/dns-conf/ovh.ini

And this breaks certbot as it can't find the matching ini file.

So now if that entry exists in the cli.ini we just delete it as it can never be valid.

Benefits of this PR and context:

Closes #546

How Has This Been Tested?

Source / References:

@thespad thespad requested a review from a team February 25, 2025 20:27
@thespad thespad self-assigned this Feb 25, 2025
@LinuxServer-CI
Copy link
Contributor

I am a bot, here is the pushed image/manifest for this PR:

ghcr.io/linuxserver/lspipepr-swag:3.2.0-pkg-fa884131-dev-199d0a6707f73174e2acbe55b1a749ba8f6ce8f9-pr-548

Copy link
Member

@nemchik nemchik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I have no idea how a user would end up in this situation, but i see no harm in this addition.

@thespad thespad merged commit 615ccbc into master Feb 26, 2025
7 checks passed
@thespad thespad deleted the invalid-dns-creds branch February 26, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

[BUG] Swag cannot find credentials .ini file when switching to dns challenge
3 participants