Skip to content

Show DKIM keystore status in the key generation dialog - #22

Open
gott-alexander wants to merge 1 commit into
grommunio:masterfrom
gott-alexander:feature/redis-dkim-keys
Open

gott-alexander wants to merge 1 commit into
grommunio:masterfrom
gott-alexander:feature/redis-dkim-keys

Conversation

@gott-alexander

Copy link
Copy Markdown

Summary

The DKIM key generation dialog currently always displays manual shell
commands to install the generated key into grommunio-antispam, because the
API historically could not place the key itself. With the new keystore
support in admin-api (generateDkimKeys returns
{pubKey, redisStored, redisError}), the dialog can report the actual state
instead.

Changes

  • src/components/Dialogs/dns/GenerateDkimKeys.tsx:
    • reads the new response shape and shows a success note when the key was
      stored in the keystore automatically,
    • keeps the manual-instructions block as a fallback for the case where
      the push failed or an older backend still returns the bare public key
      string (fully backward compatible).

Verification

Built and exercised against a backend with the keystore enabled (success
note shown, no manual commands) and with it disabled (manual instructions
shown as before).

generateDkimKeys now reports whether the private key was pushed into
the DKIM keystore. Show a success note when it was, and only fall back
to the manual post-install commands when the keystore push failed or
an older backend returned the bare public key.
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.

1 participant