Generate content of metadata.name and introduce display name #290

Open
opened 2025-11-14 08:09:27 +00:00 by tobru · 0 comments
Owner

Stories

As the control plane, I want to have unique resource names

Implementation Notes

We currently directly allow the portal user to set the content of metadata.name. This is a very crucial field in the control-plane and it's immutable. To increase the system stability and prevent bad naming, we will generate this value now and let the user set a display name.

  • Generate the value of metadata.name
  • Store the generated value in the ServiceInstance model; this is used to work with the resource in the control-plane
  • Use the current "name" field of the ServiceInstance model as the display name.
  • Set an annotation servala.com/displayName

Name generatio

Input read: https://gnugat.github.io/2018/06/15/short-identifier.html
We could use plain old UUID, but this is not human friendly for the poor ops guy for debugging in the middle of the night on the control plane.

Proposal: Do a SHA256 on the name used when creating the service instance and use the first 8 characters of the SHA sum. Alternative: Use https://github.com/hnimminh/human-readable-id

## Stories _As the control plane, I want to have unique resource names_ ## Implementation Notes We currently directly allow the portal user to set the content of `metadata.name`. This is a very crucial field in the control-plane and it's immutable. To increase the system stability and prevent bad naming, we will generate this value now and let the user set a display name. * Generate the value of `metadata.name` * Store the generated value in the `ServiceInstance` model; this is used to work with the resource in the control-plane * Use the current "name" field of the `ServiceInstance` model as the display name. * Set an annotation `servala.com/displayName` ### Name generatio Input read: https://gnugat.github.io/2018/06/15/short-identifier.html We could use plain old UUID, but this is not human friendly for the poor ops guy for debugging in the middle of the night on the control plane. Proposal: Do a SHA256 on the name used when creating the service instance and use the first 8 characters of the SHA sum. Alternative: Use https://github.com/hnimminh/human-readable-id
tobru added the
change
label 2025-11-14 08:09:27 +00:00
tobru added this to the Development Planning project 2025-11-14 08:09:27 +00:00
tobru changed title from Generate content of metadata.name to Generate content of metadata.name and introduce display name 2025-11-14 08:09:55 +00:00
Sign in to join this conversation.
No milestone
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: servala/servala-portal#290
No description provided.