Skip to content

S3: error with non AWS S3 provider #1952

@baby-gnu

Description

@baby-gnu

Hello.

Some S3 providers require forcePathStyle, in case of self hosting a garageHQ I got the following error:

2025-12-18T13:37:00.094Z error:         Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: s3-codimd.s3.test.example.net. is not in the cert's altnames: DNS:*.test.example.net, DNS:test.example.net

At the same time, the S3 client library is outdated, 0.1.0-preview.2 is 6 years old and does not support the forcePathStyle option. The latest @aws-sdk/client-s3 is 3.954.0.

I think codimd should permit to configure all S3 parameters to adapt configuration for specific providers and use cases.

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions