Skip to content

feat(secrets): add --not-exposed-by-default flag to fal secrets set#1103

Open
hanchchch wants to merge 1 commit into
mainfrom
hanch/serv-768-not-exposed-by-default
Open

feat(secrets): add --not-exposed-by-default flag to fal secrets set#1103
hanchchch wants to merge 1 commit into
mainfrom
hanch/serv-768-not-exposed-by-default

Conversation

@hanchchch

@hanchchch hanchchch commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Client-side part of SERV-768: per-secret opt-out of default exposure. Uses the default_exposed proto field from #1104 (merged, published as isolate-proto 0.34.1).

  • fal secrets set now sends default_exposed=true unless --not-exposed-by-default is passed. A secret set with the flag is not injected into apps by default — it is only available to apps that explicitly list it in their secrets config.
  • fal secrets list (pretty + json) shows the per-secret setting; account default / null means the secret predates this feature and the account-level expose_secrets_by_default admin config decides.
  • SDK: client.secrets.set(..., default_exposed=...) defaults to None (no opinion → server preserves the existing setting on updates, account default for new secrets), so programmatic callers are unaffected.
  • Bumps the isolate-proto requirement to >=0.34.1.

Server side

Enforcement lands in fal-ai/isolate-cloud#8210 (migration) + fal-ai/isolate-cloud#8208 (logic). Until those deploy, the server ignores the new field.

Test plan

  • pytest projects/fal/tests/unit against the published isolate-proto 0.34.1 — secret tests pass (new parser tests for the flag included).

🤖 Generated with Claude Code

@linear-code

linear-code Bot commented Jul 2, 2026

Copy link
Copy Markdown

SERV-768

`fal secrets set` now marks secrets as exposed by default unless
--not-exposed-by-default is passed; such secrets are only injected into
apps that explicitly list them in their secrets config. `fal secrets
list` shows the per-secret exposure setting.

Uses the default_exposed proto field added in #1104; bumps the
isolate-proto requirement to >=0.34.1 accordingly.

SERV-768

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hanchchch hanchchch force-pushed the hanch/serv-768-not-exposed-by-default branch from 080b004 to 6d6b8d4 Compare July 3, 2026 05:36
@hanchchch hanchchch marked this pull request as ready for review July 3, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant