intellij-kubernetes icon indicating copy to clipboard operation
intellij-kubernetes copied to clipboard

No validation of the resource name

Open olkornii opened this issue 1 year ago • 0 comments

Steps:

  1. EXEC: "Edit" some resource (ex. Pod)
  2. EXEC: in the editor: add some forbidden characters to the name (ex. ",")
  3. EXEC: inspect the name that is reported in the push notification

Result: The editor does not complain about the illegal character in the name. The push notification is only using portions of the name (ex. the portion before the ",") Screencast from 2024-04-08 11-19-37.webm

Expected result: Editor should error given that the resource name is illegal. There should be no push notification

Rules for kubernetes names are as follows: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/

  • contain no more than 253 characters
  • contain only lowercase alphanumeric characters, '-' or '.'
  • start with an alphanumeric character
  • end with an alphanumeric character

olkornii avatar Apr 09 '24 08:04 olkornii