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 callsformat_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 callsformat_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:
- Add a resolver whose
format_job_args/1redacts one key, and whoseresolve_access/1returns:read_only. - Insert a job whose args contain that key.
- 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!
Trending in Troubleshooting
Other Trending Topics
Latest Oban Threads
Questions & Help>Troubleshooting
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #security
- #elixirconf-eu
- #processes
- #api
- #forms
- #hex











Showing Posts 1 to 1- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
sorentwo
@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.