Replies: 11 comments
-
cat robot$project+test.json | jq .secret |
Beta Was this translation helpful? Give feedback.
-
docker login harbor.domainname.local --username $(jq -r .name robot$project+test.json) --password $(jq -r .secret robot$project+test.json) |
Beta Was this translation helpful? Give feedback.
-
Yes, I know about Also, your code snippets are wrong: you didn't escape Using |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
you are right, there itself was escaped in the process of pressing tab, I forgot `` |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I guess from the discussion we just had now everyone can understand how guiding of third-parties can look like. Yes, we eventually manage to make it work. But the more such cases I have the more time-consuming it is. If there's no good reason for the current file format then I'd change it to enable a better out-of-the-box experience. I'm surprised that this is controversial since it should be in the interest of the project to improve UX. |
Beta Was this translation helpful? Give feedback.
-
I would disagree that changing the file format would improve UX. Exporting the robot data in json you have the username and the token in one file (better for distributing), the credentials are better to parse (like the docker login example above) and with jq they are easy to read. nowadays jq is part of the standard toolchain. Whether it is better to export the information as plain text or as json, depends then nevertheless strongly on the use case and the personal opinion. i prefer the json format. |
Beta Was this translation helpful? Give feedback.
-
Convert it discussion as per there are a lot of discuss |
Beta Was this translation helpful? Give feedback.
-
After creating a new robot account it's possible to download the generated token as a file. Unfortunately, the JSON formatting doesn't allow the file to be used seamlessly with
.
A clear improvement would be if the file would contain the access token exclusively.
The proposed change is trivial to implement.
Beta Was this translation helpful? Give feedback.
All reactions