domainaware / parsedmarc

A Python package and CLI for parsing aggregate and forensic DMARC reports
https://domainaware.github.io/parsedmarc/
Apache License 2.0
962 stars 210 forks source link

Problems using Minio as S3 storage compatible #461

Open jsarola opened 5 months ago

jsarola commented 5 months ago

Hi, I want to use a minio infraestructure to save all attachments. After configuring minio, every time parsedmarc try to upload the file, it gives the error "An error occurred (AccessDenied) when calling the PutObject operation: There were headers present in the request which were not signed".

After trying some test, I can solve changing when put_object in s3.py for this text:

....
      self.s3.Object(
            self.bucket_name,
            object_path
        ).put(Body=json.dumps(report))

I can't test if it works in a S3 environment (I haven't access to any bucket), but I think it will work. How to make a PR to change this?