GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feature request: granular tokens · Issue #958 · TechnitiumSoftware/DnsServer

Feature request: granular tokens #958

New issue
Copy link
New issue
Copy link
Open
Open
Feature request: granular tokens#958
Copy link

Description

@stratself
stratself
opened on Jul 1, 2024
Issue body actions

Hi, 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 :)

Activity

  1. ShreyasZare commented on Jul 2, 2024

    @ShreyasZare
    ShreyasZare
    on Jul 2, 2024
    Member
    More actions

    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
  2. stratself commented on Dec 5, 2025

    @stratself
    stratself
    on Dec 5, 2025
    Author
    More actions

    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

  3. ShreyasZare commented on Dec 5, 2025

    @ShreyasZare
    ShreyasZare
    on Dec 5, 2025
    Member
    More actions

    @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.

    Reacted by stratself
  4. stratself commented on Dec 5, 2025

    @stratself
    stratself
    on Dec 5, 2025
    Author
    More actions

    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

    Reacted by Shreyas Zare
  5. ShreyasZare commented on Dec 5, 2025

    @ShreyasZare
    ShreyasZare
    on Dec 5, 2025
    Member
    More actions

    You're welcome. Ya, lets keep this issue open so that I can revisit it later.

    Reacted by stratself
  6. spaaleks commented on Apr 6, 2026

    @spaaleks
    spaaleks
    on Apr 6, 2026
    More actions

    @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! 🙌🏽

    Reacted by Shreyas Zare
  7. ShreyasZare commented on Apr 7, 2026

    @ShreyasZare
    ShreyasZare
    on Apr 7, 2026
    Member
    More actions

    @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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.