[GH-ISSUE #213] Limit length of account name #56

Closed
opened 2026-05-07 00:18:12 +02:00 by BreizhHardware · 4 comments

Originally created by @FlochonR on GitHub (Jul 1, 2021).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/213

Hello everybody,

I have a question about the limit of the length of account name that is at 18
Account name is too long, length(xxx....) > 18

Is there a particular reason of this ? Can it have edge effect if I change the value ?

Thanks in advance for your replies,
FlochonR

Originally created by @FlochonR on GitHub (Jul 1, 2021). Original GitHub issue: https://github.com/ovh/the-bastion/issues/213 Hello everybody, I have a question about the limit of the length of account name that is at 18 ``Account name is too long, length(xxx....) > 18`` Is there a particular reason of this ? Can it have edge effect if I change the value ? Thanks in advance for your replies, FlochonR
Author
Owner

@speed47 commented on GitHub (Jul 1, 2021):

This is a technical limitation, linked to the fact that Linux usernames can't have more than 32 characters, and The Bastion uses prefixes and suffixes internally that add to the base length of the account you want to create.

We might want to optimize the length of these prefixes/suffixes at some point to try to get back room for a few more characters, but it won't be more than 4 or 5, unfortunately.

EDIT: I was thinking about group names when answering above (it's 18 chars too). It might be feasible to have slightly longer account names, maybe up to ~28 (the 32 chars limit still applies, and there is a --tty suffix of 4 chars), I'll investigate.

<!-- gh-comment-id:872057320 --> @speed47 commented on GitHub (Jul 1, 2021): This is a technical limitation, linked to the fact that Linux usernames can't have more than 32 characters, and The Bastion uses prefixes and suffixes internally that add to the base length of the account you want to create. We might want to optimize the length of these prefixes/suffixes at some point to try to get back room for a few more characters, but it won't be more than 4 or 5, unfortunately. EDIT: I was thinking about group names when answering above (it's 18 chars too). It might be feasible to have slightly longer account names, maybe up to ~28 (the 32 chars limit still applies, and there is a --tty suffix of 4 chars), I'll investigate.
Author
Owner

@FlochonR commented on GitHub (Jul 1, 2021):

Ok thanks for your response !

<!-- gh-comment-id:872198748 --> @FlochonR commented on GitHub (Jul 1, 2021): Ok thanks for your response !
Author
Owner

@speed47 commented on GitHub (Jul 1, 2021):

FWIW it was easier than I previously though, #214 will bring the limit up to 28 chars.

<!-- gh-comment-id:872364178 --> @speed47 commented on GitHub (Jul 1, 2021): FWIW it was easier than I previously though, #214 will bring the limit up to 28 chars.
Author
Owner

@FlochonR commented on GitHub (Jul 2, 2021):

Thank you !!

<!-- gh-comment-id:872764841 --> @FlochonR commented on GitHub (Jul 2, 2021): Thank you !!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/the-bastion#56
No description provided.