Repository navigation
v1.3.3
π LambdaTT IAM - Release Notes
π¦ Version: 1.3.3
π
Release Date: 2026-11-22
π License: MIT
π€ Authors:
- Gabriel Valentoni Guelfi (https://github.com/gabriel-guelfi)
π¬ Commentaries:
This release simplifies the entire permissions domain. The old module/entity + CRUD permission
model (and the parallel "custom permissions") has been replaced by a single, flat, tag-based
permission model. A permission is now just a unique tag with a human-readable title, access
profiles are associated directly with permissions, and authorization is a single tag check.
This removes the IAM dependency on the module-control domain and makes permissions far easier
to declare, seed and reason about.
β¨ New Features:
βΈ New flat permission entity: `IAM_PERMISSION` (unique `ds_tag` + `ds_title`).
βΈ `iam/permission->requireAny(string|array $tags)` β single tag-based authorization check,
with super-admin short-circuit.
βΈ `iam/permission->associate()` / `->disassociate()` β attach/detach a permission to an
access profile by tag.
βΈ `iam/accessprofile->listPermissions()`, `->attachToUser()`, `->detachFromUser()` and
`iam/user->listProfiles()`, `->listPermissions()`.
βΈ New endpoint `GET /v1/logged/permissions` returning the logged user's effective permissions.
βΈ Setup command re-written around a new, declarative JSON schema. A documented example ships
as `iam.settings.example.json`. See the README for the full schema.
π§ Changes:
βΈ `iam:accessprofiles:set:permission` now associates a known permission (by tag) to a profile,
with a `--remove` flag to detach. `iam:users:set:access-profile` attaches/detaches a profile.
βΈ Access-profile permission seeding is now a declarative desired-state sync (attach missing,
detach extras).
βΈ README updated with the permission-domain overview and settings-file schema.
βΈ Removed the module/entity + CRUD permission model and the custom-permission model, along with
their tables (`IAM_ACCESSPROFILE_MODULE`, `IAM_CUSTOM_PERMISSION`,
`IAM_ACCESSPROFILE_CUSTOM_PERMISSION`) and the previous `IAM_ACCESSPROFILE_PERMISSION` shape.
Run the new migrations to move to the flat schema.
βΈ `iam/permission->validatePermissions([...])` (entity β CRUD) was removed. Replace call sites
with `requireAny('<tag>')`. Consuming modules must migrate their authorization checks.
βΈ Removed service methods: `getModules`, `addModule`, `removeModule`, `updProfileModules`,
`applyEntityPermissions`, `permissionsByModule`, `createExecPermission`, `updPermission`,
`relateCustomPermission`, `customPermissionRemoveRelation`, `hasAccessToModules`,
`updUserProfiles`, `userProfiles`, `addProfileByTag`, `attachAccessProfile`.
βΈ Setup settings file: `customPermissions` β `permissions` (`{tag, title}`); a profile's
`permissions.regular` / `permissions.custom` β a single `permissions` array of tags (or `"*"`).