~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A demoted maker's app passwords are kept, and work again if they are re-promoted

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

stands forgets a maker's app passwords once the maker can no longer issue them. createSession refuses that maker but forgets nothing. For example, Bob makes "Laptop" and nothing signs in with it, then Bob is made a plain member: - listAppPasswords still shows "Laptop" to configurers. - If Bob is made a publisher again, the old password signs in again. The test ends_once_its_maker_could_no_longer_make_it covers only the case where a session exists.

How to see it

Read against docs/fresh at 4636e6d, the code at: crates/group-host/src/app_passwords.rs:244 (against stands, :100-121). Paths are under crates/group-host/src unless they say otherwise. Severity: low.

What you expected

When may_issue fails in create_session, drop the maker's passwords and sessions as stands does. Better still, drop them when the roles change (assignRoles), as put_out does.

Where

The host, as built from 4636e6d. Found while checking the docs against the code.