Upload media to digitalocean spaces using strapi v4

I’m having the same issue but resetting the key doesn’t work for me. This was working okay.

middlewares.js

module.exports = [
    'strapi::errors',
    {
        name: 'strapi::security',
        config: {
          contentSecurityPolicy: {
            useDefaults: true,
            directives: {
              'connect-src': ["'self'", 'https:'],
              'img-src': [
                "'self'",
                'data:',
                'blob:',
                'dl.airtable.com',
                '*.nyc3.digitaloceanspaces.com',
                'nyc3.digitaloceanspaces.com',
              ],
              'media-src': [
                "'self'",
                'data:',
                'blob:',
                'dl.airtable.com',
                '*.nyc3.digitaloceanspaces.com',
                'nyc3.digitaloceanspaces.com',
              ],
              upgradeInsecureRequests: null,
            },
          },
        },
      },
    'strapi::cors',
    'strapi::poweredBy',
    'strapi::logger',
    'strapi::query',
    'strapi::body',
    'strapi::session',
    'strapi::favicon',
    'strapi::public',
  ];

plugins.js

module.exports = ({ env }) => ({
    upload: {
      config: {
        provider: 'aws-s3',
        providerOptions: {
          accessKeyId: env('DO_ACCESS_KEY_ID'),
          secretAccessKey: env('DO_ACCESS_SECRET'),
          endpoint: env('DO_ENDPOINT'), // e.g. "s3.fr-par.scw.cloud"
          params: {
            Bucket: env('DO_BUCKET'),
          },
        },
      },
    },
  });

ERROR:

 [2023-05-31 16:00:32.652] error: SignatureDoesNotMatch: null

I’ve tried regenerating the key and also using a different key. Also re building and re deploying the app.

I’m kinda lost on where to look for an error, any ideas?