Skip to content

Commit

Permalink
exclude secrets and tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
samnoyes committed Jan 18, 2024
1 parent f9ab267 commit 5a8ba73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/langsmith/env/_runtime_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ def get_langchain_env_var_metadata() -> dict:
langchain_metadata = {
k: v
for k, v in os.environ.items()
if k.startswith("LANGCHAIN_") and k not in excluded and "key" not in k.lower()
if k.startswith("LANGCHAIN_")
and k not in excluded
and "key" not in k.lower()
and "secret" not in k.lower()
and "token" not in k.lower()
}
env_revision_id = langchain_metadata.pop("LANGCHAIN_REVISION_ID", None)
if env_revision_id:
Expand Down

0 comments on commit 5a8ba73

Please sign in to comment.