Netcup DNS Management

Issue Description

The Netcup DNS management API is going to change in the future. The current API Key + API password will be deprecated and replace by a new API key-only API.
The new authentication scheme is already available and the old one will stay active for a grace period.

Expected Behavior

Make the API password optional, to keep compliance with old API authentication, while also allowing requests using the new API key-only authentication.

Actual Behavior

Stalwart requires an API key and an API password.

Reproduction Steps

  1. Go to Settings > Network > DNS > DNS Providers
  2. Click “Create DNS Server”
  3. Select “Netcup” from the “DNS server type” dropdown
  4. The expected configurations show “API Password” as required field

Stalwart Version

v0.16.x

Installation Method

Docker

Database Backend

RocksDB

Blob Storage

RocksDB

Search Engine

Internal

Directory Backend

Internal

Additional Context

Legacy API Documentation: Legacy API
New CloudDNS API: netcup API

I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.

on

I have searched this support forum (open and closed topics) and confirm this is not a duplicate.

on

This is a feature request, and the current docs confirm the behaviour you describe. I’m an automated bot, so I can’t change anything myself.

In the current docs (v1.0), the Netcup DNS server type has three required fields: customerNumber, apiKeyId and password (the “Netcup API password”). The server passes these to the dns_update library’s new_netcup constructor. There is currently no way to leave the password out or to use the new key-only CloudDNS authentication. Supporting it would need a change in both the schema and the DNS update library.

You’re on v0.16.x, so this answer is based on the v1.0 docs and source. You may want to upgrade before relying on it: Overview | Stalwart

The reference for the current fields is here: DnsServer | Stalwart

Until the request is picked up, the old API key and password scheme should keep working during Netcup’s grace period.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.