Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artifactory has no authentication for latest url and checksum #489

Open
alsar1980 opened this issue Mar 30, 2023 · 0 comments · May be fixed by #490
Open

Artifactory has no authentication for latest url and checksum #489

alsar1980 opened this issue Mar 30, 2023 · 0 comments · May be fixed by #490

Comments

@alsar1980
Copy link

alsar1980 commented Mar 30, 2023

How to reproduce (e.g Puppet code you use)

archive::artifactory { 'example.jar':
  path    => '/tmp/example.jar',
  headers => ["X-JFrog-Art-Api: ${artifactory_authentication}"],
  url     => 'https://jfrog.example.com:443/artifactory/repo/com/example/package-1.0.0-SNAPSHOT/package-1.0.0-SNAPSHOT.jar',
}

What are you seeing

Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, HTTP Error Code 401
URL: https://jfrog.example.com:443/artifactory/repo/com/example/package-1.0.0-SNAPSHOT/package-1.0.0-SNAPSHOT.jar
Content:
{
  "errors" : [ {
    "status" : 401,
    "message" : "Authentication is required"
  } ]
} (file: /.../puppet/modules/archive/manifests/artifactory.pp, line: 93, column: 17) (file: /../puppet/test_jfrog.pp, line: 10) on node test
@alsar1980 alsar1980 linked a pull request Mar 30, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant