Skip to content

Commit c106672

Browse files
committed
fix: add security caution language to AutoGen Studio READMEs and docs
Add the caution and security note language to the AutoGen Studio GitHub README, the main repo README, and the installation docs to make it clear that AutoGen Studio is not production-ready. Also fix minor lint issues from prior commit (ruff format, unused import).
1 parent 6ad2c40 commit c106672

5 files changed

Lines changed: 23 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ For more advanced multi-agent orchestrations and workflows, read
152152

153153
Use AutoGen Studio to prototype and run multi-agent workflows without writing code.
154154

155+
> **Caution**: AutoGen Studio is meant to help you rapidly prototype multi-agent workflows and
156+
> demonstrate an example of end user interfaces built with AutoGen. It is **not meant to be a
157+
> production-ready app**. Developers are encouraged to use the AutoGen framework to build their own
158+
> applications, implementing authentication, security and other features required for deployed
159+
> applications. See the [security note](https://microsoft.github.io/autogen/dev/user-guide/autogenstudio-user-guide/index.html#a-note-on-security) for more details.
160+
155161
```bash
156162
# Run AutoGen Studio on http://localhost:8080
157163
autogenstudio ui --port 8080 --appdir ./my-app

python/docs/src/user-guide/autogenstudio-user-guide/installation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ myst:
77

88
# Installation
99

10+
```{caution}
11+
AutoGen Studio is meant to help you rapidly prototype multi-agent workflows and demonstrate an example of end user interfaces built with AutoGen. It is not meant to be a production-ready app. Developers are encouraged to use the AutoGen framework to build their own applications, implementing authentication, security and other features required for deployed applications.
12+
```
13+
1014
There are two ways to install AutoGen Studio - from PyPi or from source. We **recommend installing from PyPi** unless you plan to modify the source code.
1115

1216
## Create a Virtual Environment (Recommended)

python/packages/autogen-core/src/autogen_core/_component_config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ def _get_trusted_namespaces() -> tuple[str, ...]:
7474
extra = os.environ.get("AUTOGEN_ALLOWED_PROVIDER_NAMESPACES", "")
7575
if extra:
7676
extras = tuple(
77-
ns.strip() if ns.strip().endswith(".") else ns.strip() + "."
78-
for ns in extra.split(",")
79-
if ns.strip()
77+
ns.strip() if ns.strip().endswith(".") else ns.strip() + "." for ns in extra.split(",") if ns.strip()
8078
)
8179
return _TRUSTED_PROVIDER_NAMESPACES + extras
8280
return _TRUSTED_PROVIDER_NAMESPACES

python/packages/autogen-core/tests/test_component_config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,6 @@ def test_component_descriptions() -> None:
371371

372372
def test_untrusted_provider_rejected() -> None:
373373
"""load_component must reject providers outside trusted namespaces."""
374-
import os
375-
376374
bad_model = ComponentModel(provider="os.path.join", config={})
377375
with pytest.raises(ValueError, match="not in a trusted namespace"):
378376
ComponentLoader.load_component(bad_model, object) # type: ignore

python/packages/autogen-studio/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,19 @@ AutoGen Studio is an AutoGen-powered AI app (user interface) to help you rapidly
99

1010
Code for AutoGen Studio is on GitHub at [microsoft/autogen](https://github.com/microsoft/autogen/tree/main/python/packages/autogen-studio)
1111

12+
> [!CAUTION]
13+
> AutoGen Studio is meant to help you rapidly prototype multi-agent workflows and demonstrate an example of end user interfaces built with AutoGen. It is **not meant to be a production-ready app**. Developers are encouraged to use the [AutoGen framework](https://microsoft.github.io/autogen) to build their own applications, implementing authentication, security and other features required for deployed applications.
14+
1215
> [!WARNING]
13-
> AutoGen Studio is under active development and is currently not meant to be a production-ready app. Expect breaking changes in upcoming releases. [Documentation](https://microsoft.github.io/autogen/docs/autogen-studio/getting-started) and the `README.md` might be outdated.
16+
> AutoGen Studio is under active development. Expect breaking changes in upcoming releases.
17+
18+
## A Note on Security
19+
20+
AutoGen Studio is a research prototype and is **not meant to be used** in a production environment. Some baseline practices are encouraged e.g., using Docker code execution environment for your agents.
21+
22+
However, other considerations such as rigorous tests related to jailbreaking, ensuring LLMs only have access to the right keys of data given the end user's permissions, and other security features are not implemented in AutoGen Studio.
23+
24+
If you are building a production application, please use the [AutoGen framework](https://microsoft.github.io/autogen) and implement the necessary security features.
1425

1526
## Updates
1627

0 commit comments

Comments
 (0)