karlosmid

karlosmid

Hi Parker and Shannon,

First, thank you for Oban and Oban Web. They’re a pleasure to build on, and the resolver’s format_job_args/1 and format_recorded/2 callbacks made it easy for us to keep personal data out of the dashboard. That’s how we noticed two places where args still show up unredacted.

Versions: oban_web 2.12.6 (the same code is still in 2.13.0), oban 2.23.1, phoenix_live_view 1.1.33, Elixir 1.20, OTP 29, Postgres 18.

Setup: Some of our jobs carry personal data in their args (email, phone, date of birth). Our resolver overrides format_job_args/1 to replace those values with "[REDACTED]". The job list and the args panel on the job detail page both show the redacted version, as expected.

1. The job edit form shows the raw args, even with read-only access

On the job detail page, the “Args” field of the Edit form is filled from job.args directly and doesn’t go through the resolver:

  • 2.12.6: Oban.Web.Jobs.DetailComponent.form_from_job/1, which calls format_job_args(job.args) → Oban.JSON.encode!(args)
  • 2.13.0: Oban.Web.Jobs.Form.seed/1 (lib/oban/web/live/jobs/form.ex), which calls format_args(job.args) → Oban.JSON.encode!(args)

We checked this on a rendered page with both resolve_access(_user) -> :all and -> :read_only. With :read_only the fieldset is disabled, but the textarea is still rendered with the full JSON, so anyone who can open the dashboard can read it in the page source. We couldn’t find a resolver callback or router option that hides the form.

To reproduce:

  1. Add a resolver whose format_job_args/1 redacts one key, and whose resolve_access/1 returns :read_only.
  2. Insert a job whose args contain that key.
  3. Open /oban/jobs/<id>. The args panel shows the redacted value, and the Edit form’s <textarea name="args"> contains the original value.

2. Search hints suggest arg values

Typing args.<key>: in the jobs search offers the distinct stored values for that key (suggest_json_vals(:args, ...) in lib/oban/web/queries/job_query.ex), so args.email: lists real email addresses. As far as we can see, a resolver can’t turn this off: hint_query_limit/1 only accepts :infinity or a positive integer.

Thank you!

Showing Posts 1 to 1

sorentwo

sorentwo

Oban Core Team

@karlosmid The job edit form leaking raw args issue was fixed in Web v2.13.1, released last week. Changes to search hinting aren’t in that release, since it’s a much more involved set of changes.

If args must be hidden from developers, then encrypted args are the best option.

— All posts loaded —

Where Next? Top

Trending in Troubleshooting Top

RobertDober
Hi there Hopefully the right place to ask :slight_smile: The PR would be trivial, but I just cannot manage to compile or test in my for...
New
rayex
I am on Windows 10 using Elixir 1.20.5 and Erlang/OTP 29. In iex: IO.write("\a") does not ring the bell anymore (it used to work prior...
New
phravins
Hi everyone! Sharing a project I’ve been building: QuantumBilling, an open-source billing app for Indian businesses, made with Elixir and...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
261 13183 112
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews