SShortSingh.
Back to feed

Developer Ditches ReBAC Tools Over List-Filtering Limitations, Moves Auth to Postgres

0
·1 views

A developer tested relationship-based access control (ReBAC) by integrating OpenFGA into a prototype, running 120 assertions across 16 test scenarios before ultimately removing it. The core issue was not with ReBAC as a model but with how existing tools handle list queries — determining which objects a user can access, not just whether they can access a specific one. Approaches like post-query filtering, fetching full permission lists, or maintaining a local index each introduced problems around pagination accuracy, performance, or data synchronization. Permit.io's partial policy evaluation was identified as the conceptually correct solution, but its Postgres support remains in early access and is limited to attribute-based rather than relationship-based policies. The developer resolved the problem by moving authorization logic directly into Postgres as native functions, enabling permission checks and list filtering to run in the same transaction without a separate sync layer.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Claude Code Hooks Let Developers Block AI Agents from Reading Secret Files

Claude Code, Anthropic's coding agent, can inadvertently read sensitive files like .env or private keys while debugging, exposing secrets in session transcripts and logs. The platform offers a built-in mechanism called hooks — small scripts registered in settings.json — that intercept tool calls before they execute. Developers can write Python-based PreToolUse hooks to deny file reads matching secret-file patterns, or Bash hooks to block dangerous commands like rm -rf on sensitive paths. Stop hooks can also prevent a session from ending until checks like linting pass, while SessionStart hooks can automatically inject git context at the beginning of each session. Unlike informal instructions in CLAUDE.md, hooks are enforced programmatically and return structured denial reasons the model can act on.

0
ProgrammingDEV Community ·

How Android Developers Are Bringing On-Device AI to Apps in 2026

On-device AI has become a practical focus in Android development in 2026, driven by real-world needs like offline functionality, lower latency, and keeping sensitive data off the network. Unlike cloud AI, local inference runs directly on a phone's CPU, GPU, or NPU, making it viable for tasks such as summarizing logs or correcting pronunciation without an internet connection. Google's Gemini Nano, managed through the Android AICore system service, is a key tool enabling this, though its availability varies by device chipset, RAM, and Android version. Most production apps in 2026 use a hybrid approach, combining on-device and cloud AI depending on the task at hand. Developers must carefully assess which workloads suit local inference, as device hardware constraints still limit model size and reasoning depth compared to cloud-based alternatives.

0
ProgrammingDEV Community ·

How to Stop Jira and Confluence From Auto-Converting Quotes

Atlassian's Jira and Confluence automatically convert standard single and double quotes into typographic 'smart' quotes when users type them. There is currently no built-in setting to permanently disable this auto-formatting behavior. However, users can work around the issue by pressing Ctrl-Z immediately after a smart quote appears to revert it to a standard character. The same trick applies to apostrophes in contractions, such as 'don't', where the apostrophe changes after the following letter is typed. Pressing Ctrl-Z at that point restores the plain apostrophe.

0
ProgrammingDEV Community ·

Open-Source Java Diagnostics Tool Axelix Reaches General Availability

Axelix, an open-source tool designed to identify common problems, inefficiencies, and pitfalls in Java applications at scale, has officially reached General Availability (GA). The project was developed by a core team with contributions from its broader community and is now publicly accessible on GitHub. The announcement comes alongside a discussion of the Java ecosystem's maturity, noting that Spring Data JPA and Hibernate dominate database-access patterns in Java, unlike the more fragmented JavaScript ORM landscape. The team highlighted that Java remains widely used in enterprise software development, citing JetBrains and Stack Overflow developer surveys for 2025. Axelix aims to address challenges specific to large-scale Java applications built around these well-established but complex frameworks.

Developer Ditches ReBAC Tools Over List-Filtering Limitations, Moves Auth to Postgres · ShortSingh