Skip to content

Bug: Deployments fail when SECRET_LIST is unset/empty (should be optional) #41

Description

@rgcottrell

Deployments fail if no value is provided for the SECRET_LIST secret. Current behavior effectively makes SECRET_LIST mandatory, even though it should be optional.

Summary

If SECRET_LIST is not set (or is empty), livekit/deploy-action fails during deployment. The only workaround is to set SECRET_LIST to a non-empty value, but that causes unwanted side effects (extra agent secrets created).

Steps to reproduce
1. Use livekit/deploy-action in a workflow that does not define SECRET_LIST (or defines it as an empty secret).
2. Run the workflow to deploy.

Expected behavior

Deployment should succeed when SECRET_LIST is not provided. Secret handling should be skipped (or treated as an empty list) when SECRET_LIST is unset/blank.

Actual behavior

Deployment fails when SECRET_LIST is missing/empty.

Workaround (undesired)

Set SECRET_LIST to contain at least one KEY=VALUE pair.

Example:
• SECRET_LIST=FOO=bar

This allows the deployment to proceed, but it results in unnecessary creation of agent secrets:
• a secret named LIST
• plus the keys included in the list (e.g. FOO)

That’s noisy and can be misleading for users, especially when they don’t actually need agent secrets at all.

Proposed fix

Deploy / release the fix from PR #39:

This PR makes SECRET_LIST effectively optional and avoids the failure path when it’s unset/empty.

Additional notes

This is an easy footgun: users who don’t need secret injection shouldn’t have to define a dummy secret list, and they definitely shouldn’t end up with phantom agent secrets as a side effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions