Skip to content

Cap role description length and update role updated_at when custom-role permissions are dropped #667

In review

Description

@rodmgwgu

Follow-up from the review of #647 (review). Both items are non-blocking and were out of scope for that PR.

  1. Cap the role description length. The field has no max length. A 10k+ character value was accepted during review. The longest existing role description is 201 characters. Proposed limit: 300 or 500 characters, enforced in the serializer.

  2. Update updated_at when load_authz_schema --drop-custom-role-permissions removes grants. The command deletes permission grants without touching the role row, so updated_at stays old and GET /roles/ sorts by a stale timestamp. ADR 0036 says permission changes should update the role's timestamp.

Metadata

Metadata

Labels

willow

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions