SShortSingh.
Back to feed

Developer Builds Live Playground to Compare Four Authorization Engines Side by Side

0
·1 views

A developer created an interactive browser-based tool to test four authorization engines — Cedar, Casbin, OpenFGA (ReBAC), and OPA/Rego — against identical access-control rules and every possible request combination. The experiment revealed that ReBAC struggled with time-based conditions, since its core check function has no concept of time, causing it to allow edits at 3am while the other three engines correctly denied them. This limitation is acknowledged by OpenFGA itself, which later introduced Conditions specifically to address time-sensitive scenarios. The project also exposed a subtle testing blind spot: the test suite sampled only four times of day, missing business-hours boundary cases entirely, meaning a misconfigured time window went undetected despite all tests passing. The tool runs fully in the browser using WebAssembly bindings, with no backend, and is publicly available as an open-source repository.

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 ·

Developer builds 59 privacy-first browser tools in vanilla JS with zero dependencies

A developer has publicly launched Antigravity Tools, a collection of 59 free, browser-based utilities built entirely in vanilla JavaScript with no external dependencies, backend servers, or analytics. The project was motivated by privacy concerns with popular online tools such as JWT decoders and regex testers, which can log user data on remote servers. Every operation in Antigravity Tools runs locally in the user's browser using native APIs including Web Crypto, Canvas, Web Audio, and IndexedDB. The toolkit covers a wide range of developer needs, including JWT inspection, RSA key generation, JSON formatting, cURL conversion, regex testing, and AI prompt utilities. The tools are available for free at antigravitytools.app.

0
ProgrammingDEV Community ·

Page Count Is a Poor Metric for Estimating PDF-to-Text Extraction Work

A developer tested seven English documents through a PDF extraction tool to evaluate how well page count predicts post-processing effort, finding it to be a weak indicator. A single page from a 1734 book required more manual fixes than two pages of a modern academic paper, with the type of error mattering more than the quantity. The author categorized each error — called a 'spot' — into three buckets: scriptable fixes, human review required, or pages needing full re-OCR. A short script handling hyphen joins, tab-to-space conversion, and timestamp spacing resolved the majority of errors automatically. However, edge cases like conflicting OCR text layers and fused multi-column lines still required human judgment, underscoring that complexity, not page count, should drive project estimates.

0
ProgrammingDEV Community ·

Solo publisher learns local queues fail as distributed systems after article count mismatch

A developer running a solo automated publishing system discovered on September 11 that their local publishing ledger showed 29 articles while the public profile listed 30, revealing a fundamental flaw in their approach. The discrepancy traced back to a June 16 article published via a separate recovery path that was intentionally excluded from the rotation ledger, meaning both counts were technically correct but measured different things. A stale editor buffer compounded the risk, as reopening the post editor could restore old article text and accidentally republish prior content as a new URL. A separate September 4 incident, where an article published successfully but a series assignment returned an HTTP 500 error, showed that representing complex multi-step operations as a single boolean success flag conceals partial failures. The author concluded that local queues are effectively small distributed systems, and reliable publishing automation requires receipts, public-destination reconciliation, and state-machine logic rather than assuming a timeout means nothing happened.

0
ProgrammingDEV Community ·

How OCR Tools Extract Text From Screenshot-Heavy PDFs — A Practical Test

A developer tested a three-page weekly ops report containing five embedded screenshots — including a dashboard, spreadsheet, chat log, alert, and kanban board — to evaluate how well OCR tools could extract text that standard PDF copy-paste methods miss entirely. Using ImgIng's Extract PDF Content with its image OCR option enabled, all five screenshots were processed in a single run without requiring an account or file upload. Results were mostly accurate: the spreadsheet and alert text came through cleanly, while the bar chart values lost their day-by-day order and one kanban card's title was silently dropped. Page headers and footers were also absent from all export formats, though the reason remains unclear. The developer recommends cross-checking each OCR block against its original screenshot, especially for charts and any fields where missing data would go unmarked.

Developer Builds Live Playground to Compare Four Authorization Engines Side by Side · ShortSingh