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
In this template it is injecting the orgKey in plain text as a request header. We shouldn't display keys in plain text, so we need to utilize the secret auth header feature defined in RemoteResource https://github.com/razee-io/RemoteResource#request-options (see Note about secretKeyRef)
As part of its operation, ClusterSubscription renders a RemoteResource template. https://github.com/razee-io/ClusterSubscription/blob/master/lib/remoteResource.js#L13-L20
In this template it is injecting the orgKey in plain text as a request header. We shouldn't display keys in plain text, so we need to utilize the secret auth header feature defined in RemoteResource https://github.com/razee-io/RemoteResource#request-options (see Note about
secretKeyRef
)ie:
in order to reference a secret like the above example, we need to first create a secret.
ie:
the createRemoteResource function should be broken up in such a way as to utilize the code that applies the resource to the cluster for both the remoteResource and the secret. https://github.com/razee-io/ClusterSubscription/blob/master/lib/remoteResource.js#L22-L87
similarly, when a remoteResource gets deleted, the corresponding secret should also be deleted. You will need to break up this function to handle both secrets and remote resources too https://github.com/razee-io/ClusterSubscription/blob/master/lib/remoteResource.js#L89-L111
The text was updated successfully, but these errors were encountered: