Files
floci/docs/services
TiM 573d4bdaff fix(lambda,iam): assume execution role for in-function SDK calls (#1909)
* fix(lambda,iam): assume execution role for in-function SDK calls

- Run Lambda SDK calls as known execution roles so IAM policies and caller identity match AWS behavior.
- Preserve unknown-role and mounted-credential fallbacks while leaving ECS behavior unchanged.
- Revoke container-bound sessions on cleanup and sweep orphaned sessions after restart.
- Resolve the session account from the function ARN when the model carries no account, so a
  published version enforces its execution role instead of dropping to the placeholder
  credentials, and revokes under the account it registered with. PublishVersion builds its
  snapshot field by field and leaves accountId unset (#2040), so the account has to come off
  the version ARN; routing every read through one helper keeps register and revoke in step.
- Add unit, enforcement, lifecycle, and real Docker coverage, plus updated documentation.

* fix(lambda): mint execution-role sessions from a CSPRNG and flag credential passthrough

The session key and secret are what IamEnforcementFilter authorizes a caller
against, so mint them from SecureRandom rather than ThreadLocalRandom, matching
how CertificateGenerator already sources security-relevant values. Register the
class for native-image run-time initialization so the static instance is not
captured, frozen-seed, into the image heap.

Credential passthrough (Floci's own AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY/
AWS_SESSION_TOKEN forwarded into a launched container) applies whenever those
variables are set, so a Floci started from a shell that exports real credentials
hands them to every workload whose role it cannot resolve. Log a WARN carrying
the access-key prefix the first time the fallback forwards host credentials, and
say so in the docs, so the accidental case is visible instead of looking
identical to the deliberate one.
2026-08-15 20:59:05 -05:00
..
2026-05-10 11:53:31 -05:00
2026-05-10 11:53:31 -05:00
2026-05-10 11:53:31 -05:00
2026-05-10 11:53:31 -05:00
2026-05-10 11:53:31 -05:00