Closed aliok closed 1 month ago
What kind of protection?
Some examples:
In our case, we also have a SA:
But it is directly used by the controller:
On the backend, we can expect a token along with the request and validate that token against the SA we're using.
ie: https://kubernetes.io/docs/reference/kubernetes-api/authentication-resources/token-review-v1/
There can be a better way though.
cc @pierDipi @matzew
/assign
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen
. Mark the issue as
fresh by adding the comment /remove-lifecycle stale
.
Currently it is expected to have the backend accessible without any authn/authz by the plugin. However, we need to protect the backend with some mechanism.
For example the Kubernetes plugin expects an API Server token in the Backstage configuration.
IMO, we should by default enable this protection, but also allow no protection for trying-it-out purposes.