Skip to content

v1.3.3

Choose a tag to compare

@gabriel-guelfi gabriel-guelfi released this 22 Nov 18:21
· 6 commits to master since this release

πŸ” LambdaTT IAM - Release Notes

πŸ“¦ Version: 1.3.3
πŸ“… Release Date: 2026-11-22
πŸ“„ License: MIT
πŸ‘€ Authors:


πŸ’¬ 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.

⚠️ Breaking Changes:

β–Έ 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 `"*"`).