question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Artifactory Access Tokens for CI Integration

See original GitHub issue

Hi,

I have made use of Artifactory access tokens for uploads interactively by doing a conan user and pasting in the encrypted password.

But when I run the build in a docker container, I would prefer to use the authentication header instead of a specific user. I could store it in a file or pass it on the command line or an environment variable. My workaround is to build the docker image with a .conan/.conan.db resulting from having done the conan user, above.

This would take some doing to affect the HTTP headers, but it would be really nice for CI pipelines.

So this would be ideal:

conan upload --auth-file=ci_upload.tok ...
conan upload --auth-tok="32984723938sfkajshu6*#82981234"...

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tamborilcommented, Mar 2, 2017

OK. I think that’s a good solution. Thanks.

0reactions
lasotecommented, Mar 13, 2017

It doesn’t work like that. The artifacts.properties only set custom properties for PUT requests. A conan upload contains two requests, the first is calling the conan server (or artifactory) to authorize the upload by generating an internal temporary token, the second is the PUT request and is only a signed url, so authentication can’t be managed with artifacts.properties.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access Tokens - JFrog - JFrog Documentation
Available from Artifactory version 7.29.7, a pairing token manages connections, by establishing trust between different JFrog microservices. The ...
Read more >
Using the JFrog Artifactory CLI with API Keys or Access Tokens
The case for authenticating users is clear, however access tokens can also be assigned to non-user entities such as CI server jobs. Flexible ......
Read more >
Manage access tokens - Docker Documentation
Access tokens are valuable for building integrations, as you can issue multiple tokens – one for each integration – and revoke them at...
Read more >
JFrog Artifactory Integration with JupiterOne - AskJ1 Community
administrator name that granted the access tokens. You must have permission in JupiterOne to install new integrations. Support. If you need help ......
Read more >
Maven packages in the Package Registry - GitLab Docs
Personal access token, Private-Token, Paste token as-is, ... administrators can disable this behavior in the Continuous Integration settings.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found