Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncate ServiceAccount display names longer than 100 characters #87

Merged
merged 3 commits into from
Nov 24, 2020

Conversation

mdgreenfield
Copy link
Contributor

This will sha256(displayName[92:]) and concat the first 8
characters of the sha256 hash to the display name.

Fixes #68

emilymye
emilymye previously approved these changes Jun 24, 2020
This will sha256(displayName[92:]) and concat the first 8
characters of the sha256 hash to the display name.

Fixes hashicorp#68
@mdgreenfield
Copy link
Contributor Author

@emilymye is this something can get merged?

plugin/role_set.go Show resolved Hide resolved
plugin/role_set.go Outdated Show resolved Hide resolved
calvn
calvn previously approved these changes Nov 20, 2020
@calvn calvn merged commit d0a7e7e into hashicorp:master Nov 24, 2020
calvn added a commit that referenced this pull request Dec 2, 2020
* Truncate ServiceAccount display names longer than 100 characters

This will sha256(displayName[92:]) and concat the first 8
characters of the sha256 hash to the display name.

Fixes #68

* Move ServiceAccount display name hash length to constant

Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>
calvn added a commit that referenced this pull request Dec 3, 2020
#103)

* Truncate ServiceAccount display names longer than 100 characters

This will sha256(displayName[92:]) and concat the first 8
characters of the sha256 hash to the display name.

Fixes #68

* Move ServiceAccount display name hash length to constant

Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>

Co-authored-by: Matt Greenfield <matt.greenfield@datadoghq.com>
@mdgreenfield mdgreenfield deleted the sa-display-name-length branch June 29, 2021 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rolesets with long names cannot be updated because SA display name exceeds 100 characters
4 participants