Files
floci/docs/services/lakeformation.md
T
Chiara Forresi ee24c77d02 feat(lakeformation): add UpdateResource action (#2944)
* feat(lakeformation): add UpdateResource action

* fix(lakeformation): validate resource updates safely

* fix(lakeformation): synchronize registerResource and pin the register/update race

* fix(lakeformation): publish UpdateResource atomically to concurrent readers

UpdateResource mutated the stored ResourceInfo field by field while
DescribeResource and ListResources read the same object reference without
synchronization, so a concurrent reader could observe a mixed state (e.g.
new role ARN with old federation value).

Apply copy-on-write: build a defensive copy, mutate the copy, then atomically
put it back. Readers now see either the old complete state or the new
complete state, never a partial one.

Add a regression test that races DescribeResource against UpdateResource and
asserts every observed snapshot is internally consistent.

* fix(lakeformation): remove em-dash
2026-09-04 09:14:52 -04:00

44 lines
1.5 KiB
Markdown

# Lake Formation
The `lakeformation` service allows you to manage data lake settings, resources, permissions, and LF-Tags, serving as the permission layer over the Glue Data Catalog.
## Configuration
| Key | Default | Description |
|---|---|---|
| `floci.services.lakeformation.enabled` | `true` | Enable or disable the Lake Formation service. |
| `floci.storage.services.lakeformation.mode` | *inherited* | Storage backend for Lake Formation settings and permissions: `memory`, `persistent`. |
| `floci.storage.services.lakeformation.flush-interval-ms` | `5000` | How often to flush state to disk when using persistent storage. |
## Supported Operations
### Data Lake Settings
* `PutDataLakeSettings`
* `GetDataLakeSettings`
### Resource Registration
* `RegisterResource`
* `UpdateResource`
* `DeregisterResource`
* `ListResources`
* `DescribeResource`
### Permissions
* `GrantPermissions`
* `RevokePermissions`
* `ListPermissions`
### LF-Tags
* `CreateLFTag`
* `GetLFTag`
* `UpdateLFTag`
* `DeleteLFTag`
* `ListLFTags`
* `AddLFTagsToResource`
* `RemoveLFTagsFromResource`
## Implementation Details
Floci currently supports basic CRUD operations for Lake Formation resources, permissions, and tags. This state is strictly persisted without deep integration into other data-plane emulators.
Permissions retrieval via `ListPermissions` currently lists all explicitly granted permissions to satisfy Terraform state expectations without strict caller permission filtering.