Open dimitar-peychinov opened 5 months ago
Hi Dimitar,
Thank you for reaching out!
Some time ago, to tighten the security of the API token, we made it readable only once during its creation. If you lose it, you will need to regenerate it. Sorry for the inconvenience.
Once again, thank you for the feedback. We'll make sure to update the documentation as needed.
I merged the changes to the documentation and will close this ticket now. Feel free to reopen it if you have any concerns.
Hello @radwo and thank you for the swift feedback and for addressing the issue by updating the documentation.
However, it seems to me that the wording is still a bit confusing:
You can find your token by visiting your account settings.
Not really, you can only regenerate it there, you can't find/read/get it there, right?
You can find the exact
sem connect
command, which includes your current organization's, by selecting the CLI widget in the top-right corner of any screen on Semaphore.
Imo this sentence got worse after the change - as now it's not clear that it includes the org name. Also, it still mentions top-right - and it's not there for me - it's next to the title, so if it's a long title, then it may go to the right, but if it's a short one, then it's to the left. It also keeps saying that it's on "any screen" on Semaphore which doesn't seem to be the case.
You are right. The quick fix here didn't do the trick. I will revisit that documentation during the week. Thanks for pointing this out.
On the CLI documentation https://docs.semaphoreci.com/reference/sem-command-line-tool/ it is stated that
So there are two suggestions how to find the access token. I tried both but none of them worked. Here are the details:
1. The CLI widget seems to be missing
Here's what I see:
And here is what I expected to see (source: https://semaphoreci.medium.com/ci-cd-for-microservices-on-digitalocean-kubernetes-b913fa0b3404):
The code icon is not visible (at least for me).
2. I can not see my access token on my account/profile page.
Here's what I see:
If the API token is the
access token
that I need, then I can't copy/get it from here either.I assume that my organisation settings or my account's permissions in the organisation may have something to do with this - but if that's the reason then it would be nice to have a note about it in the documentation.
Update:
Later today I saw CLI widget:
And I thought "Here's the access token now!" - but to my disappointment the "full command" only stated
sem connect studitemps.semaphoreci.com _YOUR_API_TOKEN_
:(So, to further add some details to the questions/issues above:
I assume that's a security improvement, but let's not leave the documentation behind. :)