question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Encryption both in config and in URI

See original GitHub issue

I’ve been trying to use this with an AURA database, but in order to connect I need to use neo4j+s schema (otherwise, Could not perform discovery.)

Unfortunately, once it’s included in the URI, no value for encrypted in config will avoid the Encryption/trust can only be configured either through URL or config, not both Error (I tried "ENCRYPTION_OFF" as mentioned in the readme and false).

Weirdly, I only get this error instantiating neovis, while if I create a driver manually no error comes up.

Any suggestion?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

3reactions
rthennancommented, Jun 30, 2022

Working config for Aura by using an unencrypted connection URI and enforcing encryption in the config

        var config = {
            encrypted:"ENCRYPTION_ON",
            trust: "TRUST_SYSTEM_CA_SIGNED_CERTIFICATES",
            container_id: "viz",
            server_url: "neo4j://<dbid>.databases.neo4j.io",
            ...
1reaction
hunkimcommented, Jul 22, 2022

@rthennan I still get an error after adding your configuration:

Neo4jError: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket `readyState` is: 3

Did you see any thing like this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Algorithm URI configuration settings - IBM
Specifies the algorithm URI that is used for both encrypting and decrypting data. Key encryption: Specifies the algorithm URI that is used for...
Read more >
Spring Cloud Config — Encryption and Decryption at Rest
In this story we use both the ways. For Spring Cloud to be able to encrypt and decrypt properties you will need to...
Read more >
Spring Cloud Config Server
With the Config Server you have a central place to manage external properties for applications across all environments. The concepts on both client...
Read more >
encryption - unable to decrypt from spring config server / cleint
I am trying to encrypt and decrypt config properties ...
Read more >
Quick Intro to Spring Cloud Configuration - Baeldung
To use symmetric cryptography, we simply have to set the property 'encrypt.key' in our application.properties to a secret of our choice.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found