[Bug]: hostname only policy

Open
#2,318 0 comments 2 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@hslatman is already working on this.

Since Jul 1, 2025.

Assessment

This issue has not been assessed yet.

Description

bug needs triage
Steps to Reproduce

We use in our internal LAN our own internal doman (ourdomain.internal).
Because it is annoying to always type the FQDN we use the dns serach suffix feature.

This allows us to connect to our servers via the FQDN and the shorter hostname:

curl "https://srv01.ourdomain.internal/index.html"
curl "https://srv01/index.html"

I tried to setup a policy on our step ca server so that only certificates can be issued with our FQDN (*.ourdomain.internal) or the hostname (*):

...
                "policy": {
                        "x509": {
                                "allow": {
                                        "dns": ["*", "*.ourdomain.internal"]
                                },
                                "allowWildcardNames": true
                        }
                }
...
Your Environment
  • OS -
  • step-ca Version - 0.28.3-1
  • step-cliVersion - 0.28.6-1
Expected Behavior

The policy should allow this.

Actual Behavior

The config currently leads to this error.

cannot parse permitted domain constraint "*": domain constraint "*" can not be converted to ASCII: idna: disallowed rune U+002A
Additional Context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Dominant language
Go
Stars
8.9k
Forks
599
Avg merge
21h 20m
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from smallstep/certificates

All issues in smallstep/certificates

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.