Artifactory auth working when configured but not working in galaxy request #141
-
Big fan of this project, very excited to get it up and running. I stood up a POC container pointing to my Artifactory instance, but I'm experiencing a difference between configuring the API key or access token in Galactory vs in a Galaxy request. What did I get wrong? InfoVersion: 0.11.2 What worksConfiguring galactory.conf
Collection successfully placed in Artifactory. What doesn't workUsing Artifactory key in Galaxy request - galactory.conf - artifactory-api-key=MyArtifactoryToken...
+ use-galaxy-auth=True
+ galaxy-auth-type=api_token
artifactory-path=https://artifactory....
api-version=v3
upload-format=base64
No change to Artifactory. Debug outputWith
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Thanks very much! Glad to hear it. I'd love to know how you heard about it as well. I can't do any deep debugging right now but I'll try to take a closer look as soon as I can. I appreciate the detailed report! Could I confirm a few details?
This value should be either Also it seems like you're intending to use an API token and not an access key generally, is that correct? Is there anything else in the galactory debug output that shows info about the auth process? It might also be helpful to run |
Beta Was this translation helpful? Give feedback.
-
Answering my own question here-- this an open bug in ansible since (at least) 2.15! ansible/ansible#81698 For a token to even be included in the request to a private / custom Galaxy server, it must be specified in ansible.cfg explicitly. Working:[galaxy]
server_list = local
[galaxy_server.local]
url = "http://galaxy.demo.org:8088/"
token = WholeTokenExplicitlyHere
Not working:
In this case no token is provided and the |
Beta Was this translation helpful? Give feedback.
Answering my own question here-- this an open bug in ansible since (at least) 2.15! ansible/ansible#81698
For a token to even be included in the request to a private / custom Galaxy server, it must be specified in ansible.cfg explicitly.
Working:
Not working:
token_path
inansible.cfg
in any case, even with--token
on commandlineIn this case no token is provided and the
Authorization
header is never sent.