v0.0.10¶
New¶
- Pending Users and approval (
woodglue.auth_store,woodglue.access): a User has a status ofpending,active, ordisabled. An Identity Provider'sadmit_as: pendingadmits new Users without Grants until an admin approves them withwgl user approveorsystem.approve_user. A pending User listed inauth.adminsbecomes active at sign-in. Pending Users cannot create tokens. - Delete a User:
AuthStore.delete_user,wgl user delete, andsystem.delete_userremove a User with their Role assignments, provider links, Sessions, and tokens. - Console Users page for admins: list Users, approve, disable, re-enable,
delete, and assign or unassign Roles. The built-in admin cannot be disabled,
deleted, or lose
admin. - No-access page: a signed-in User without Grants who opens a UI sees an
"awaiting approval" page (pending) or a "no access" page (active) instead of a
bare 403, through Caddy's
forward_authtoo. package:references inuis:appand Static UIpathacceptpackage:<import name>/<path>, resolved inside the installed package without importing it.wgl caddy configproxies such Static UIs to woodglue.
Changed¶
- Breaking:
auth.dbmigrates in place to schema version 2; older woodglue versions cannot open it afterwards. - Breaking:
system.list_usersreturnsUser.statusinstead ofUser.disabled. - Breaking:
system.describe_initiatorsrequiresreadon some namespace. system.list_rolesis admin-only;RoleInfogainsbuiltinandWhoAmIgainsadmin.AuthStore.unassign_rolerefuses to removeadminfrom the built-in admin.wgl user,wgl token,wgl run, andwgl caddy configloadwoodglue.yamlwithout expanding provider secrets, so they work where those environment variables are unset.
Fixes¶
/,/ui, and/ui/redirect to the default UI with a 302 instead of a 301, so browsers no longer keep the old/ui/target from v0.0.8.- Secrets in query strings (OAuth
code,state,token) are redacted from request and error logs (woodglue.apps.server).
Documentation¶
- How-tos for access control, identity providers, static UIs, Streamlit UIs, and
Caddy cover pending Users, approval,
package:references, and the no-access page. - Glossary adds "User status" and "Role assignment".
Dependencies¶
- New:
ruamel-yaml pydantic-yamlmoves to dev dependencies
Decisions and tickets¶
Closed:
-
24 Delete a User:
wgl user deleteand a system call¶ -
25 Don't log the OAuth callback's code and state¶
-
27 UIs: reference files in installed packages with package:¶
-
30 Users: pending status, admit_as, and approve¶
-
31 Show an awaiting-approval page to signed-in Users without Grants¶
-
32 wgl user: open auth.db without expanding provider secrets¶
-
33 Console: Users page for admins¶