You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to achieve the Wazuh Integration with S3 using Kubernetes Service account.
I'm trying to annotate a k8s service account with an IAM role. For that I have created a role with trust relationship(Which Authenticates the AWS services with Cluster Pods) and necessary permissions and created a service account with the created role ARN.
In the deployment file of wazuh-Manager added the service account.
spec:
serviceAccountName: wazuh-service-account
This is working and I'm able to access the s3 bucket from the Wazuh Manager pod while doing aws s3 ls.
But Not sure why the wazuh is not able access the bucket, We are getting the below error in integration.log file 2024/03/11 10:26:14 wazuh-modulesd:aws-s3: WARNING: Bucket: - An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid
This is the integration added in the ossec.conf
Again I'm just guessing as I am going through the motions of implementing the same type of integration and I am researching the best way to go about when I saw this issue here. Please share if it solves the issue. -
hmmm not sure why it does not work i get this on the logs
Apr 18, 2024 @ 11:37:15.000 wazuh-modulesd:aws-s3 WARNING Bucket: 1111111111(mybucket) - Unsupported host '169.254.170.23'. Can only retrieve metadata from these hosts: 169.254.170.2, localhost, 127.0.0.1
I wonder if wazuh aws integration supports the right aws sdk version or if it trully requires the actual .aws/credential with the token info on the root diretory of the container
We need to achieve the Wazuh Integration with S3 using Kubernetes Service account.
I'm trying to annotate a k8s service account with an IAM role. For that I have created a role with trust relationship(Which Authenticates the AWS services with Cluster Pods) and necessary permissions and created a service account with the created role ARN.
In the deployment file of wazuh-Manager added the service account.
This is working and I'm able to access the s3 bucket from the Wazuh Manager pod while doing aws s3 ls.
But Not sure why the wazuh is not able access the bucket, We are getting the below error in integration.log file
2024/03/11 10:26:14 wazuh-modulesd:aws-s3: WARNING: Bucket: - An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid
This is the integration added in the ossec.conf
The text was updated successfully, but these errors were encountered: