You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
Terraform 0.12.13
Artifactory Provider v2.0.0
Affected Resource(s)
artifactory_file
Expected Behavior
When using the artifactory provider with ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD set (Basic auth). The artifactory_file data source should be handled without errors provided the credentials are correct.
Actual Behavior
The tf plan fails with the following message:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>InvalidArgument</Code>
<Message>Only one auth mechanism allowed; only the X-Amz-Algorithm query parameter, Signature query string parameter or the Authorization header should be specified</Message>
<ArgumentName>Authorization</ArgumentName>
<ArgumentValue>Basic ********************</ArgumentValue>
<RequestId>********************</RequestId>
<HostId>********************</HostId>
</Error>
Steps to Reproduce
Add the provider provider "artifactory" {}
Set valid env vars for ARTIFACTORY_URL (or optionally provide URL in provider block), ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD
Add some data "artifactory_file" "test" { ... } data source block. (Only tested this with a valid artifactory repository and file. Not sure if this can be reproduced with dummy values too.)
Execute tf plan
Important Factoids
This works if ARTIFACTORY_API_KEY is used instead of ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD (likely because it does not use the Authorization header?)
The error message seems to be AWS S3 related (We are running the SaaS version of JFrog on AWS)
Community Note
Terraform Version
Terraform 0.12.13
Artifactory Provider v2.0.0
Affected Resource(s)
Expected Behavior
When using the artifactory provider with
ARTIFACTORY_USERNAME
andARTIFACTORY_PASSWORD
set (Basic auth). Theartifactory_file
data source should be handled without errors provided the credentials are correct.Actual Behavior
The
tf plan
fails with the following message:Steps to Reproduce
provider "artifactory" {}
ARTIFACTORY_URL
(or optionally provide URL in provider block),ARTIFACTORY_USERNAME
andARTIFACTORY_PASSWORD
data "artifactory_file" "test" { ... }
data source block. (Only tested this with a valid artifactory repository and file. Not sure if this can be reproduced with dummy values too.)tf plan
Important Factoids
ARTIFACTORY_API_KEY
is used instead ofARTIFACTORY_USERNAME
andARTIFACTORY_PASSWORD
(likely because it does not use the Authorization header?)go-artifactory
issue.References
The text was updated successfully, but these errors were encountered: