You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A service can has a plugin () to add extra commands to tsuru cli. There is no way to get the info passed to a service by tsuru to be used by the extra commands.
By example, if I have a mysql service and want to create a command to make a backup. On service-add and service-bind tsuru pass the info about user, and the instances. In my plugin I dont have any info about the user that makes impossible to verify if this user has permission to do a backup, and know how instances the user has access.
A way to make it possible is create a resource in tsuru api to be a proxy between the plugin and the service. This resource should receive the user token, process it and execute a url to the service custom url as callback.
By example:
POST /service/proxy/myservice?callback=/backup
The text was updated successfully, but these errors were encountered:
A service can has a plugin () to add extra commands to tsuru cli. There is no way to get the info passed to a service by tsuru to be used by the extra commands.
By example, if I have a mysql service and want to create a command to make a backup. On service-add and service-bind tsuru pass the info about user, and the instances. In my plugin I dont have any info about the user that makes impossible to verify if this user has permission to do a backup, and know how instances the user has access.
A way to make it possible is create a resource in tsuru api to be a proxy between the plugin and the service. This resource should receive the user token, process it and execute a url to the service custom url as callback.
By example:
POST /service/proxy/myservice?callback=/backup
The text was updated successfully, but these errors were encountered: