DependencyTrack / DependencyTrack/dependency-track
Invalid API key asserted
- Dominant language
- Java
- Stars
- 4.2k
- Forks
- 811
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 237
Description
### 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
- [x] I have read and understand the [contributing guidelines](https://github.com/DependencyTrack/dependency-track/blob/master/CONTRIBUTING.md#filing-issues)
- [x] I have checked the [existing issues](https://github.com/DependencyTrack/dependency-track/issues) for whether this defect was already reported
Contributor guide
Assessment
This issue has not been assessed yet.