Skip to content

Instantly share code, notes, and snippets.

View s8sg's full-sized avatar
🙌
Eventual Consistency

Swarvanu Sengupta s8sg

🙌
Eventual Consistency
View GitHub Profile
@s8sg
s8sg / airports.json
Created July 24, 2017 03:08 — forked from tdreyno/airports.json
JSON data for airports and their locations
This file has been truncated, but you can view the full file.
[
{
"code": "AAA",
"lat": "-17.3595",
"lon": "-145.494",
"name": "Anaa Airport",
"city": "Anaa",
"state": "Tuamotu-Gambier",
"country": "French Polynesia",
@s8sg
s8sg / GraphGist-SimpleRBAC.adoc
Last active August 18, 2020 05:27 — forked from mikesname/GraphGist-SimpleRBAC.adoc
Very simplistic way of doing role-based access control (RBAC) with Neo4j.

This is a very simple approach to doing role-based access control with Neo4j. It is optimistic, in the sense that all items are assumed to be world-readable unless they have specific constraints. Item visibility can be constrained to either individual users or all users who belong to a role. Roles are also hierarchical, so can inherit privileges from other roles.

This file is updated based on CYPHER guideline of 3.0

Setup:

Using docker is the easiest way to get started quickly

docker pull neo4j