mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 23:29:28 -05:00
* feat(firehose): authorize the roles of a Redshift destination With IAM enforcement on, check the role of the intermediate S3Configuration (trust firehose.amazonaws.com, s3:PutObject) before a batch is staged, and the destination RoleARN (same trust, s3:GetObject) before the COPY runs. A refused staging keeps the records buffered; a refused load retries against the object already staged, so a batch is never staged twice. The COPY still carries no credentials; minting them and authenticating the proxy's S3 read come in follow-up changes. * fix(firehose): guard transform error writes and validate staging roles Check staging role permissions on Lambda transformation error output before writing to S3 so rejected writes keep batches buffered. Validate S3 destination role ARNs during destination creation/update and ensure empty roles are not exempt from authorization checks when IAM enforcement is active. * fix(firehose): keep ordinary S3 streams on 4-arg transform overload Avoid calling the 5-arg transform overload for ordinary S3 streams so existing 4-arg mocks (such as in FirehoseDataFormatConversionTest) continue to match.