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

Report MailinaBox DNS API Bugs #2550

Open
billgertz opened this issue Oct 22, 2019 · 13 comments
Open

Report MailinaBox DNS API Bugs #2550

billgertz opened this issue Oct 22, 2019 · 13 comments
Assignees
Labels
3rd party api report bugs to dns api, deploy hooks and notification hooks

Comments

@billgertz
Copy link
Contributor

billgertz commented Oct 22, 2019

This is the place to report bugs in the MailinaBox DNS API (dns_miab.sh)

If you experience a bug, please report it in this issue.

Thanks!

@Neilpang Neilpang added the 3rd party api report bugs to dns api, deploy hooks and notification hooks label Oct 23, 2019
@billgertz billgertz changed the title MailinaBox DNS API Bugs Report MailinaBox DNS API Bugs Nov 5, 2019
@draft13
Copy link

draft13 commented Jun 20, 2023

image

[Tue Jun 20 11:00:07 AM EDT 2023] Using miab challange add
[Tue Jun 20 11:00:07 AM EDT 2023] ERROR fetching domain list
[Tue Jun 20 11:00:07 AM EDT 2023] missing-totp-token

Not really a bug, but perhaps add the ability to use the one-time-password.

@lifeboy
Copy link
Contributor

lifeboy commented Aug 19, 2024

I use the acme plugin from pfSense and I get this error:

[Mon Aug 19 20:35:20 SAST 2024] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Mon Aug 19 20:35:20 SAST 2024] Using pre generated key: /tmp/acme/Primary/fw.fast.za.net/fw.fast.za.net.key.next
[Mon Aug 19 20:35:20 SAST 2024] Generate next pre-generate key.
[Mon Aug 19 20:35:21 SAST 2024] Multi domain='DNS:fw.fast.za.net,DNS:fw-1a.fast.za.net,DNS:fw-1b.fast.za.net'
[Mon Aug 19 20:35:21 SAST 2024] Getting domain auth token for each domain
[Mon Aug 19 20:35:26 SAST 2024] Getting webroot for domain='fw.fast.za.net'
[Mon Aug 19 20:35:26 SAST 2024] Getting webroot for domain='fw-1a.fast.za.net'
[Mon Aug 19 20:35:26 SAST 2024] Getting webroot for domain='fw-1b.fast.za.net'
[Mon Aug 19 20:35:26 SAST 2024] Adding txt value: AoNbz13SoEUZU9o7_4nbn6ljq7gx9vT87YgZekkXa1w for domain:  _acme-challenge.fw.fast.za.net
[Mon Aug 19 20:35:26 SAST 2024] Using miab challange add
[Mon Aug 19 20:35:27 SAST 2024] Error encountered during record add
[Mon Aug 19 20:35:27 SAST 2024] No value for the record provided.
[Mon Aug 19 20:35:27 SAST 2024] Error add txt for domain:_acme-challenge.fw.fast.za.net
[Mon Aug 19 20:35:27 SAST 2024] Please check log file for more details: /tmp/acme/Primary/acme_issuecert.log

It seems that in the API call to MiaB the text should be quoted and the format changed. See this post: ddavness/power-mailinabox#121 (comment)

In essense the txt record needs to be of the form: ""value=some text here&ttl=300".

It looks like this API call needs to be updated?

@draft13
Copy link

draft13 commented Oct 13, 2024

This line doesn't not work for me.

txtvalue="value=$2&ttl=300"

If I change it to txtvalue=$2 then everything is fine. The comment above the mentioned line reads as:

Added "value=" and "&ttl=300" to accomodate the new TXT record format used by the MIAB/PMIAB API

Not sure what this is reference two, but it isn't working as published and I am running the most recent version of MIAB. I can do a PR if that is preferred to revert this change.

@lifeboy
Copy link
Contributor

lifeboy commented Oct 13, 2024

I added those "value=" and "&ttl=300" parts into the script because of this: ddavness/power-mailinabox#121

I have a suspicion though that this change in the API was only made to Power-Mailinabox and was not merged back into Mailinabox. I'm waiting for confirmation of this, and it this is indeed the case, I will create a new dns_pmiab.sh for this.

@lifeboy
Copy link
Contributor

lifeboy commented Oct 16, 2024

I have gone ahead and created a separate dns api for Power-Mailinabox, called dns_pmiab.sh and have issued a PR for it.

I will remove my changes to dns_miab.sh and will issue a PR for that as well.

@skoszewski
Copy link

@lifeboy when will you revert the patch mentioned by @draft13?

@lifeboy
Copy link
Contributor

lifeboy commented Nov 13, 2024 via email

@lifeboy
Copy link
Contributor

lifeboy commented Nov 13, 2024

I believe I have done a PR, waiting for it to be accepted. Let me check up on that.

Yes, indeed, #5330, which creates a new DNS API for power-mail-in-a-box and reverts the change to mail-in-a-box.

@Neilpang, is there anything that is holding this back from being accepted?

@lifeboy
Copy link
Contributor

lifeboy commented Nov 13, 2024

I don't get it! My code changes were fully tested and passed all tests. When I viewed the status of the fork a couple of minutes ago it showed that I was a behind the acme master, so I requested a re-sync. Now the tests start and fail on docker right away. But again, it's not possible to see why, since the critical parts are all just rendered as asterisks in the log!

How is one expected to fix a problem without being able to see the nature of the problem??

@skoszewski
Copy link

Maybe it was a mistake to merge those fixes in one PR. I would do one for fix in original MIAB plugin, and another one for a new plugin.

@lifeboy
Copy link
Contributor

lifeboy commented Nov 13, 2024

The original MIAB plugin is literally one line that was added and now removed (although I did also include fixing some typos).

I still don't get how one is supposed to figure out why a test run fails though, when github hides the details with '****'.

@lifeboy
Copy link
Contributor

lifeboy commented Nov 13, 2024

I just checked the code. The change (revert) has been merged into master. Please check it @skoszewski

@skoszewski
Copy link

Look good. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party api report bugs to dns api, deploy hooks and notification hooks
Projects
None yet
Development

No branches or pull requests

5 participants