Skip to content
This repository was archived by the owner on Mar 18, 2021. It is now read-only.
This repository was archived by the owner on Mar 18, 2021. It is now read-only.

SSL support for aqueduct db upgrade #811

Open

Description

@timosettels

This is possibly more of a documentation issue rather than a feature request in case it is already implemented:

As many hosting providers require SSL to connect to production databases, the migration tool should support SSL connections. Currently 'aqueduct db upgrade --connect ...' does not seem to be configurable to establish a SSL connection. Is this correct? Could this be implemented?

Best regards and awesome work so far!

Activity

  1. Reductions commented on Apr 13, 2020

    @Reductions
    Contributor

    You mean when you used aqueduct db upgrade --use-ssl --connection ... it doesn't work?

  2. timosettels commented on Apr 13, 2020

    @timosettels
    Author

    Yes exactly. When i enter
    aqueduct db upgrade --use-ssl --connect postgres://...
    The command takes a little longer to execute than without the --use-ssl-Flag but ultimately also fails: *** There was an error connecting to the database....
    The exact same connection data works with the aqueduct PostgreSQLPersistentStore though, but only when i specify

    PostgreSQLPersistentStore.fromConnectionInfo( ... useSSL: true, );

    Thats why i assumed it is a SSL issue.

  3. Aldo111 commented on Apr 14, 2020

    @Aldo111

    Thank you for opening this issue! I've been struggling with getting SSL mode to work for db migration on a hosted db instance. I didn't even know that --use-ssl was an option for the upgrade as I spent ages looking for it.

    Using --use-ssl now results in the same error as above "There was an error.."

  4. Aldo111 commented on Apr 14, 2020

    @Aldo111

    I tried this with a different hosted postgres instance (was previously using AWS). With digitalocean, I was able to make it a little deeper before it failed again:

    -- Aqueduct CLI Version: 3.2.1 -- Aqueduct project version: 3.2.1 SELECT versionNumber, dateOfUpgrade FROM _aqueduct_version_pgsql ORDER BY dateOfUpgrade ASC HERE -- Updating to version 1 on new database... PostgreSQL connecting, <my db>. *** There was an error connecting to the database '<my db>'. Reason: unable to connect to database.

  5. itsjoeconway commented on Apr 15, 2020

    @itsjoeconway
    Contributor

    Thanks for everyone's input. There is a bug in this command where the --use-ssl flag does not actually toggle whether the connection is SSL:

    store = PostgreSQLPersistentStore(dbInfo.username, dbInfo.password,
    .

  6. NayanJD commented on Sep 11, 2020

    @NayanJD

    I am also facing the same with Standard Heroku Postgres instance.

  7. lee-40square commented on Oct 2, 2020

    @lee-40square

    Looks like we have a PR fixing this issue. Sweet!

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