skupperproject / skupper

Skupper is an implementation of a Virtual Application Network, enabling rich hybrid cloud communication.
http://skupper.io
Apache License 2.0
592 stars 73 forks source link

allow token naming or show it in the output yaml #589

Open hguerrero opened 3 years ago

hguerrero commented 3 years ago

When creating a token using the CLI, there is no easy way to know what is the secret created in the namespace backing up that token.

It can be either part of the yaml output or we should be able to use something like --secret-name to easily find in the secrets.

Currently we have to open the encoded token, decode to get that information.

grs commented 3 years ago

Can you elaborate a little more on this? Is this for claim type tokens? What are you wanting to achieve?

hguerrero commented 3 years ago

Sure @grs, looks I'm mistaken on the behavior of the token. As I noticed it is not creating any resource in the namespace. Is it possible to retrieve/save the token into the namespace besides the filesystem?

grs commented 3 years ago

The cli skupper link create expects a file on the filesystem. However the link is actually established by the service controller when the secret is saved to the kube api in that namespace (thats what the cli will do, after checking and perhaps modifying the name). So if you have some other way to transfer the token, that should work.