frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Genesis DB: Thoughts on fine-grained access control

2•patriceckhart•2h ago
I'm currently exploring a lightweight approach to access control in an event sourcing database (Genesis DB): https://www.genesisdb.io. Authentication is handled via Bearer tokens atm. In the future, authentication and authorization could be entirely declarative, through a policy.json that defines privilege targets, roles, and grants/denies.

Here's a simplified example: https://gist.githubusercontent.com/patriceckhart/ec6f90e80e4dba3c500564fe96101621/raw/ac495628a37a8ab9c60edff7af1015cb1a9f96ae/gistfile1.txt

The idea is that this policy.json can be injected via an environment variable or mounted into the container meaning policies stay versioned, declarative, and inspectable. Every request goes through the same decision layer, with default-deny semantics and clear role separation.

It's not meant to replace external IAM systems, but to give small self-contained deployments a simple, auditable policy mechanism.

I'm curious how others view this approach:

• Is injecting a policy file like this too static for real-world setups?

• Would you prefer a dynamic store or API for policies instead?

• Any pitfalls you’ve seen with file-based or declarative access-control systems?

Thanks! I'd really appreciate feedback from anyone who's built fine-grained access control before.

Comments

hubertzhang•2h ago
Like AWS, json is OK for me
patriceckhart•41m ago
Thanks! Are you using Genesis DB yourself at the moment, or just speaking from general experience with JSON-based policy systems?

TiVo won the court battles, but lost the TV war

https://www.theverge.com/tech/802254/tivo-time-warp-patent-courtoom-battles-lost-tv-war
1•jhatax•52s ago•0 comments

Upgrades from Debian 12 [to 13]

https://www.debian.org/releases/trixie/release-notes/upgrading.en.html
1•basemi•2m ago•0 comments

Is Sam Altman a Psycho CEO?

https://www.theguardian.com/commentisfree/2025/oct/10/sam-altman-copyright-ai-sora-2-video-generator
1•cratermoon•4m ago•0 comments

Compare Single Board Computers

https://sbc.compare/
2•todsacerdoti•5m ago•0 comments

Resolving an Amalgam of Issues During the Elite Specialization Beta

https://www.guildwars2.com/en/news/resolving-issues-during-the-elite-specialization-beta/
1•AndreasTheDead•7m ago•0 comments

Stellenium is building first AI data center in West Africa

https://techafricanews.com/2025/10/14/inp-hb-and-stellenium-corporation-sign-partnership-for-tech...
1•possiblyburrito•8m ago•0 comments

A 2020 MacBook Air can hash every North American phone number in four hours

https://matthodges.com/posts/2025-10-19-privacy-theater-pii-phone-numbers/
2•m-hodges•9m ago•0 comments

Soil bacteria and minerals can form a 'battery' that breaks down antibiotics

https://phys.org/news/2025-10-soil-bacteria-minerals-natural-battery.html
1•PaulHoule•10m ago•0 comments

Rapa Nui's Famous Moai Statues May Have 'Walked' into Place

https://www.sciencealert.com/rapa-nuis-famous-moai-statues-really-may-have-walked-into-place
2•jhncls•12m ago•0 comments

Airliner hit by possible space debris

https://avbrief.com/united-max-hit-by-falling-object-at-36000-feet/
1•d_silin•13m ago•0 comments

How swear words differ around the world

https://www.theguardian.com/science/2025/oct/19/italian-blasphemy-and-german-ingenuity-how-swear-...
1•mykowebhn•13m ago•0 comments

Advent of Code

https://adventofcode.com/about
1•andsoitis•14m ago•0 comments

Criticizing Immigration Laws Is Not Racist

https://www.maximepeabody.com/blog/immigration-in-canada
14•peab•14m ago•0 comments

Hydrogel-based expanding pill for weight loss shows promising results in trial

https://www.uhs.nhs.uk/whats-new/press-releases/weight-loss-pill-aims-to-bridge-gap-in-obesity-tr...
1•giuliomagnifico•15m ago•0 comments

Ask HN: Anyone pivoted from SWE/mgmt to a different career in your 30/40s+?

2•mactavish88•16m ago•0 comments

Where AI meets real outcomes

https://dimaggi.com
1•tenywan•22m ago•1 comments

Do You Know What I Know? Steven Pinker Book Review

https://www.newyorker.com/culture/open-questions/do-you-know-what-i-know
2•pseudolus•22m ago•1 comments

Flutter – The great thread merge [video]

https://www.youtube.com/watch?v=miW7vCmQwnw
1•wiradikusuma•23m ago•0 comments

The state of the AI bubble [video]

https://www.youtube.com/watch?v=2U6bJEFC97c
1•EPendragon•23m ago•0 comments

A video that reduces anxiety: choose one person follow them top-bottom 2x

https://twitter.com/Hastalikogrenn/status/1906700318986956929
1•marshfram•23m ago•0 comments

Show HN: We're tracking AI bot visits daily across our network

2•legitcoders•28m ago•0 comments

Show HN: MarkdownConverters – Convert any file format to clean Markdown

https://markdownconverters.com
2•Dkaur•28m ago•0 comments

Could the XZ backdoor been detected with better Git/Deb packaging practices?

https://optimizedbyotto.com/post/xz-backdoor-debian-git-detection/
1•ottoke•29m ago•1 comments

Space junk crash-lands at mine site

https://thewest.com.au/news/wa/newman-space-junk-burns-crash-lands-at-mine-site-in-was-pilbara-re...
1•chris_nielsen•30m ago•0 comments

Reverse Engineering and Tracing internal thoughts of LLM

https://medium.com/@harishhacker3010/reverse-engineering-and-tracing-internal-thoughts-of-llm-301...
1•mrxhacker99•30m ago•0 comments

mRNA Covid vaccines spark immune response that may aid cancer survival

https://www.newscientist.com/article/2500546-mrna-covid-vaccines-spark-immune-response-that-may-a...
4•signa11•32m ago•0 comments

Show HN: HN Terminal Theme Browser Extension

https://github.com/DanceItBreakIt/hacker-news-terminal-theme
4•danceitbreakit•33m ago•1 comments

Limp Bizkit announces death of bassist Sam Rivers aged 48

https://www.theguardian.com/music/2025/oct/19/limp-bizkit-announces-death-of-bassist-sam-rivers-a...
2•bookofjoe•33m ago•0 comments

Guide AI Agents Through Test-Driven Development

https://elite-ai-assisted-coding.dev/p/guide-ai-agents-through-test-driven-development
2•janpio•34m ago•0 comments

The Licorice Battery

https://www.b-kainka.de/bastel156.html
4•radeeyate•36m ago•0 comments