Skip to content

Kysely ORM doesn't respect SSL mode #29

Closed

Description

@will2hew

I deployed Docmost in AWS ECS connecting to an RDS database. By default, RDS requires an SSL connection using an AWS managed CA.

I tried setting sslmode=require in the database url which I believe will connect via. SSL but not verify the server CA but still got an error.

I was able to bypass this, but using an insecure method. It'd be better if we could:

  1. Get Kysely (or node-postgres I suspect) to respect sslmode=require
  2. Be able to provide a CA via an environment variable
  3. Consider baking the AWS CA certificates into the container, given how ubiquitous they are

Activity

  1. Philipinho commented on Jul 1, 2024

    @Philipinho
    Member

    Thanks for reporting. I will look into it.

  2. Philipinho commented on Mar 29, 2025

    @Philipinho
    Member

    To not verify, you should also add sslmode=no-verify.
    Example: ?schema=public&sslmode=require&sslmode=no-verify

  3. added a commit that references this issue on Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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