Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with Aws Neptune #142

Open
xD3CODER opened this issue Sep 3, 2021 · 2 comments
Open

Usage with Aws Neptune #142

xD3CODER opened this issue Sep 3, 2021 · 2 comments

Comments

@xD3CODER
Copy link
Contributor

xD3CODER commented Sep 3, 2021

Hello,

I'm new in gremlin/tinkerpop ecosystem.

I'm trying to use this lib with an AWS Neptune instance.
According to the doc, Neptune does not support bindings property.
Is there a way to use the lib with Neptune despite this limitation ?

@maldrake
Copy link
Contributor

maldrake commented Sep 3, 2021

@xD3CODER,

It is possible. In fact, I'm doing so today for one project -- not production yet, but we're up in a staging environment running against AWS Neptune successfully. Because we couldn't use bindings, we ended up directly substituting variable values into the query text itself. This is a terrible work-around, but we didn't see an alternative given Neptune's limitations. You have to be extremely careful to do input validation and sanitization yourself, though, because you're at risk of gremlin injection attacks when not using bindings to parameterize queries.

@xD3CODER
Copy link
Contributor Author

xD3CODER commented Sep 8, 2021

@maldrake Thanks for your anwser, indeed, it's not optimal but I had not thought about it, I will solve my few incompatibility problems with this method, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants