kraftkit icon indicating copy to clipboard operation
kraftkit copied to clipboard

Filter kraft cloud images by namespace

Open nderjung opened this issue 11 months ago • 2 comments

Feature request summary

This ticket tracks adding the ability to filter images retrieved by kraft cloud image ls by namespace. This can be done by introducing a new flag, --namespace.

Describe alternatives

No response

Related architectures

None

Related platforms

None

Additional context

No response

nderjung avatar Mar 01 '24 10:03 nderjung

This needs refinement. The important part is not about adding a flag here, but what users should expect to be able to do and how.

For instance:

  • Can a user request images from multiple namespaces at a time? (note that I am not asking about technicals, such as whether the flag can be passed multiple times or if it should accept comma delimited values)
  • Can a KraftCloud user even list anything besides their own namespace and "official"?
  • Should the namespace reflect the user name, or friendly aliases such as "owner" vs. "official"? This is important because, when we hand over tokens, the user name that they were assigned is not explicit to the user.

antoineco avatar Mar 01 '24 10:03 antoineco

  • I don't think this is a requirement. We can add a comma separated list if this is requested by users
  • Not the regular user in the default config. But it is just a matter of setting additional permissions. For example, this is the case with some internal accounts like test
  • We always give the username and the token. I would also keep this and not hide it by owner. We can configure users to have access to multiple projects.

marcrittinghaus avatar Mar 01 '24 11:03 marcrittinghaus