dolly purvey
dolly purvey

Reputation: 35

How to protect user credentials (persisted in Neo4J) in JavaScript client code?

I am using Neo4J REST-services and passing encrypted username and password as a part of authentication header. But any other person will have access to my username and password as it is in javascript file.

Any suggestion on how can I protect my Neo4J credentials.

Upvotes: 1

Views: 144

Answers (2)

MicTech
MicTech

Reputation: 45043

If you are using only JavaScript client without any your own backend there is no way to hide them.

Upvotes: 0

Michael Hunger
Michael Hunger

Reputation: 41676

As you would do with any other cred, you would store it externally in a config server or environment variable.

That's how all cloud PaaS solutions do it too. So it will only be visible to your process.

Upvotes: 1

Related Questions