Skip to content

API/UI returns error when trying to login with a username that ends in a period "." #13353

@firstdorsal

Description

@firstdorsal

Describe the bug

API/UI returns error when trying to login with a username that ends in a period "."
This happens in the UI/API when trying to login with the userpass method.
If the username is test. it returns the error unsupported path
this also happens when creating it manually like that:
http://127.0.0.1:8200/v1/auth/userpass/users/test. -> 1 error occurred: * unsupported path and for some reason 404

I can create these userpass accounts by first creating an entity.
then an userpass account.
then an alias connecting both.

your documentation is saying that it supports userpass accounts like that:
The username for the user. Accepted characters: alphanumeric plus "_", "-", "." (underscore, hyphen and period); username cannot begin with hyphen or period.
https://www.vaultproject.io/api/auth/userpass#parameters

The same is true when creating a transit encryption key.

archlinux/docker/x86/latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUsed to indicate a potential bugcore/apiui

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions