GeezerVison is showing github.com — Feature request: granular tokens · Issue #958 · TechnitiumSoftware/DnsServer
Feature request: granular tokens #958DescriptionHi, thank you so much for this software!
Currently, tokens can do everything the user account can do, which would make it hard to configure different tokens per user for different purposes. I would like to request granular tokens up to a user's maximum configured permissions, and have a dedicated "Manage Tokens" window for every Technitium user to do so.
Along with OpenID Connect interest in in #488, having limited scope tokens helps make separating users from permission grants possible, and help Technitium to become as similarly compartmentalized as Forgejo/Gitea in terms of access control. An interesting use case for me for me is to have a view-only token for logs, and another write-allowed token to update certain DNS records.
I'm not sure if this is the best way to implement this. Also I understand that this is a huge feature that would rewrite the entire auth backend alongside OIDC support, and would be okay if it's not implemented :) ActivityShreyasZare commented on Jul 2, 2024 Thanks for the suggestion. This will actually require a lot of change in the design to implement. Will need to review how this can be implemented. Even if its feasible, it will take time to implement considering that this will cause a lot of changes to current design. Reacted by stratself, liang-hiwin, moutasem1989, mytlogos, Arbel Arad, pojlFDlxCOvZ4Kg8y1l4 and Aleksandar Spasojevic stratself commented on Dec 5, 2025 Hi, just to add to this issue: Currently, it seems that a user is able to write to any records of a zone they're allowed for. Could it be made so that a user (and their token) is restricted to only some aspects of a zone? For example, they can only edit TXT records of the _acme-challenge subdomain.
I've been using https://desec.io which has quite a robust scoped token model. With these I was able to mint tokens for cert renewals, and feel safe that they won't be misused for other things.
Just wanna shoot out some ideas. I think this can be a step in locking down tokens without changing too much of the architecture, and thanks for any communication ShreyasZare commented on Dec 5, 2025 @stratself For your scenario, the RFC 2136/Dynamic Updates option supports security policy where you can limit what record and type can be updated by a TSIG key. That works pretty well with ACME cert challenges. Check out this blog post which explains it. stratself commented on Dec 5, 2025 Oh nice, thanks for the guidance! I didn't know that is a standard and Technitium supports it. Gonna try it out with my ACME clients when I selfhost my domains. Hopefully there'll be future support from ACME clients for some form of DU encryption (e.g. over TLS) as to maintain confidentiality
Will keep issue open for token stuff, if that's okay ShreyasZare commented on Dec 5, 2025 You're welcome. Ya, lets keep this issue open so that I can revisit it later. spaaleks commented on Apr 6, 2026 @stratself Maybe this API Proxy could help you in the meantime until there is a general solution: https://github.com/spaaleks/technitium-api-proxy.
My use-case was to enroll the ACME DNS-01 challenge on multiple Caddy instances via a custom Plugin (https://github.com/spaaleks/caddy-dns-technitium/) as RFC 2136 did not always gave me the wanted flexibility when managing multiple domains and Caddy instances.
@ShreyasZare And kudos to you and the contributors for this project. I am still in love with that project, as this solution fits my needs perfectly (after using a lot of other DNS servers) and since the rollout of the cluster feature, I won't switch anymore! 🙌🏽 ShreyasZare commented on Apr 7, 2026
@stratself Maybe this API Proxy could help you in the meantime until there is a general solution: https://github.com/spaaleks/technitium-api-proxy.
That's a nice project.
@ShreyasZare And kudos to you and the contributors for this project. I am still in love with that project, as this solution fits my needs perfectly (after using a lot of other DNS servers) and since the rollout of the cluster feature, I won't switch anymore! 🙌🏽
Thanks for the compliments!
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|