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.
What happened
standsforgets a maker's app passwords once the maker can no longer issue them.createSessionrefuses that maker but forgets nothing. For example, Bob makes "Laptop" and nothing signs in with it, then Bob is made a plain member: -listAppPasswordsstill shows "Laptop" to configurers. - If Bob is made a publisher again, the old password signs in again. The testends_once_its_maker_could_no_longer_make_itcovers only the case where a session exists.How to see it
Read against
docs/freshat 4636e6d, the code at: crates/group-host/src/app_passwords.rs:244 (againststands, :100-121). Paths are undercrates/group-host/srcunless they say otherwise. Severity: low.What you expected
When
may_issuefails increate_session, drop the maker's passwords and sessions asstandsdoes. Better still, drop them when the roles change (assignRoles), asput_outdoes.Where
The host, as built from 4636e6d. Found while checking the docs against the code.