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

Invalid API key asserted #4597

Open
2 tasks done
beazt93 opened this issue Jan 28, 2025 · 1 comment
Open
2 tasks done

Invalid API key asserted #4597

beazt93 opened this issue Jan 28, 2025 · 1 comment
Labels
defect Something isn't working in triage

Comments

@beazt93
Copy link

beazt93 commented Jan 28, 2025

Current Behavior

When I try to upload a bom file via the rest api using the curl command, I get the error, that my api key is invalid, even though I triple checked if the key was correct and has correct permissions as administrator, it has every possible right.

Steps to Reproduce

  1. Using this curl
    curl -X POST "http://localhost:8081/api/v1/bom?project=insertUUIDhere" -H "X-Api-Key: insertAPIKeyHere" -H "Content-Type: multipart/form-data" -F "bom=@./test.xml" -v -i
  2. I get this error from the log
    INFO [AuthenticationFilter] Invalid API key asserted [requestId=insertIDhere]

Expected Behavior

I expect the bom to be uploaded to the project, without giving my invalid API key errors.

Dependency-Track Version

4.7.x

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

N/A

Checklist

@beazt93 beazt93 added defect Something isn't working in triage labels Jan 28, 2025
@beazt93
Copy link
Author

beazt93 commented Jan 29, 2025

Somehow I got rid of the invalid API-Key error, when I remove the last part in my POST command, so it is only http://localhost:8081/api/v1/bom without the ?project=UUID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working in triage
Projects
None yet
Development

No branches or pull requests

1 participant