Skip to content

Commit b1d05c9

Browse files
Merge remote-tracking branch 'origin/main'
2 parents 8fd44ff + 4b09057 commit b1d05c9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## [Unreleased]
22

3+
### Fixed
4+
5+
- Fix authentication for fleet API (using ApiKey instead of Bearer keyword) ([#576](https://github.com/elastic/terraform-provider-elasticstack/pull/576))
6+
37
## [0.11.1] - 2024-02-17
48

59
### Added

internal/clients/fleet/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (t *transport) RoundTrip(req *http.Request) (*http.Response, error) {
9999
}
100100

101101
if t.APIKey != "" {
102-
req.Header.Add("Authorization", "Bearer "+t.APIKey)
102+
req.Header.Add("Authorization", "ApiKey "+t.APIKey)
103103
}
104104

105105
return t.next.RoundTrip(req)

0 commit comments

Comments
 (0)