Closed ridvan70 closed 4 years ago
Hi @ridvan70
I'm unfortunately completely unaware of this. @jeffmaury, @jcantrill Do you have any idea about this? Alternatively I'd ask in the openshift dev forums/chats about the mechanics required to achieve what you're looking for. Once we know what's needed we could go ahead and implement this in the library. Can you please point me to the places in oc that you looked into and what request you have sent over the wire?
Cheers André
Yes from the secret that is retrieved, the token
field is used and base64 decoded
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen
.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Exclude this issue from closing again by commenting /lifecycle frozen
.
/close
@openshift-bot: Closing this issue.
Hi,
How can a service account token be retrieved by the rest-client?
The tokens retrieved by
oc
and therest-client
are different. I've analyzed theoc sa get-token ... --loglevel=10
and did the same calls (get ServiceAccount, get Secret) to OCP withrest-client
but the token which is returned byoc
can not be seen in the response payload of the rest-client call for theSECRET
.Is there an additional step to obtain the service account token, after retrieving the SECRET of the service account?
Regards, Ridvan