I am trying to rotate AWS access and secret keys which used during namespace configuration in Mendix Privaye cloud. I am running into below error new keys are supplied.
Reason: Error
Message: Failed to execute S3 provision creation: failed to create user: unable to create IAM user 'mendix-test-file-ae609e85-c0b7-4771-b79b-19621e1607dd': RequestError: send request failed caused by: Post "https://iam.amazonaws.com/": net/http: invalid header field value "AWS4-HMAC-SHA256 Credential=**********\n/20230320/us-east-1/iam/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=9b1a5f29d7a25c17ddd9bfb278bf013e9345dd75882aa0d90ea12c21cf8841e7" for key Authorization
My IAM user has administrator privileges.
kubectl get secrets secret_name -n Namespace -o json
Sample secret configuration
{
"apiVersion": "v1",
"data": {
"AWS_ACCESS_KEY_ID": "Access_key",
"AWS_SECRET_ACCESS_KEY": "Seceret_key"
},
"kind": "Secret",
"metadata": {
"creationTimestamp": "2023-02-28T12:30:48Z",
"name": "storage-secret",
"namespace": "mendix",
"resourceVersion": "6951122",
"uid": "cd199377-f3a3-48d7-8a5d-29e7c9bafcf6"
},
"type": "Opaque"
}
Any insights much appreciated.
Regards,
Tried editing secrets using kubectl commands, I was able to use new keys for ecr but facing issue for storage secrets.