Skip to content

ttl-reaper make deploy silently resets out-of-band function env edits #1639

Open

Description

@scttfrdmn

Problem

make -C lambda/ttl-reaper deploy resets any function env var that was changed on the Lambda directly, out-of-band from the stack parameters, back to the stack parameter's value. It does so silently. The pre-deploy "deploy will CHANGE" summary compares only the stack parameters, so it showed nothing.

Evidence (v0.166.0 deploy, 2026-11-14)

  • On 2026-11-12, REAPER_DNS_LEASE_EXPIRE=true was set on spawn-ttl-reaper-production with update-function-configuration. The stack parameter DnsLeaseExpire stayed false. The before and after parameter snapshots both show false.
  • After the SAM deploy, the function env diff was REAPER_DNS_LEASE_EXPIRE: true → false, and the parameter diff showed only Version.

Proposed fix

Before sam deploy, have the Makefile compare the live get-function-configuration env with the env the template would render from .deploy-params.yaml. On any difference, fail with a message naming the variable and the stack parameter to set, for example DNS_LEASE_EXPIRE=true. Skip this when ALLOW_ENV_RESET=1. It is the same class of problem as the existing parameter-drift guard, applied to direct function edits.

Interim state

A change set (lease-expire-true) that sets the parameter DnsLeaseExpire=true is staged on the stack. Its only property change is the env var.

Activity

  1. added this to the Hardening milestone on Nov 15, 2026
  2. added
    bug
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcomponent:spawn

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions