Skip to content

Commit 5af7ab3

Browse files
author
iru
committed
doc: troubleshoot 400 AuthorizationHeaderMalformed
1 parent 682a7fa commit 5af7ab3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,20 @@ S: Specify the desired VPC region availability zones for the vpc module, using t
176176
### Q: I'm not able to see Cloud Infrastructure Entitlements Management (CIEM) results
177177
A: Make sure you installed both [cloud-bench](https://github.com/sysdiglabs/terraform-aws-secure-for-cloud/tree/master/modules/services/cloud-bench) and [cloud-connector](https://github.com/sysdiglabs/terraform-aws-secure-for-cloud/tree/master/modules/services/cloud-connector) modules
178178

179+
180+
### Q: I get 400 api error AuthorizationHeaderMalformed on the Sysdig workload ECS Task
181+
182+
```text
183+
error while receiving the messages: error retrieving from S3 bucket=crit-start-trail: operation error S3: GetObject,
184+
https response error StatusCode: 400, RequestID: ***, HostID: ***,
185+
api error AuthorizationHeaderMalformed: The authorization header is malformed; a non-empty Access Key (AKID) must be provided in the credential."}
186+
```
187+
A: When the S3 bucket, where cloudtrail events are stored, is not in the same account as where the Cloud Connector workload is deployed, it requires the
188+
use of the [`assumeRole` configuration](https://github.com/sysdiglabs/terraform-aws-secure-for-cloud/blob/master/modules/services/cloud-connector/s3-config.tf#L30).
189+
This error happens when the ECS `TaskRole` has no permissions to assume this role
190+
S: Give permissions to `sts:AssumeRole` to the role used.
191+
192+
179193
### Q: How to iterate cloud-connector modification testing
180194

181195
A: Build a custom docker image of cloud-connector `docker build . -t <DOCKER_IMAGE> -f ./build/cloud-connector/Dockerfile` and upload it to any registry (like dockerhub).

0 commit comments

Comments
 (0)