Skip to content

Commit 5b73543

Browse files
committed
clarify user access
1 parent 345cd96 commit 5b73543

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

docs/hub/spaces-sdks-docker-langfuse.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,27 @@ To get started, click the button above or follow these steps:
4040
- `NEXTAUTH_SECRET`: Used to validate login session cookies, generate secret with at least 256 entropy using `openssl rand -base64 32`.
4141
- `SALT`: Used to salt hashed API keys, generate secret with at least 256 entropy using `openssl rand -base64 32`.
4242
- `ENCRYPTION_KEY`: Used to encrypt sensitive data. Must be 256 bits, 64 string characters in hex format, generate via: `openssl rand -hex 32`.
43+
7. Click **Create Space**!
4344

4445
![Clone the Langfuse Space](https://langfuse.com/images/cookbook/huggingface/huggingface-space-setup.png)
4546

46-
## Step 2: Use Langfuse
47+
### User Access
48+
49+
Your Langfuse Space is pre-configured to use Hugging Face OAuth for secure authentication, so you'll need to authorize `read` access to your Hugging Face account upon first login by following the instructions in the pop-up.
4750

48-
Now that you have Langfuse running, you can start instrumenting your LLM application to capture traces and manage your prompts.
51+
The Langfuse space _must_ be set to **public** visibility so that Langfuse API/SDK's can reach the app. This means that by default, _any_ logged-in Hugging Face user will be able to access the Langfuse space!
4952

50-
Your Langfuse Space is pre-configured to use Hugging Face OAuth for secure authentication, so you'll need to authorize `read` access to your Hugging Face account upon first login.
53+
You can prevent new users from signing up and accessing the space by setting the `AUTH_DISABLE_SIGNUP` environment variable to `true`. Be sure that you've first signed in & authenticated to the space before setting this variable else your own user profile won't be able to authenticate.
54+
55+
Once inside the app, you can use [the native Langfuse features](https://langfuse.com/docs/rbac) to manage Organizations, Projects, and Users.
5156

5257
> [!TIP]
53-
> The Langfuse space _must_ be set to **public** visibility so that the Langfuse API/SDK's can access the app.
54-
>
55-
> By default, _any_ logged-in Hugging Face user will be able to access the Langfuse space. You can prevent new user's from signing up and accessing the space by setting the `AUTH_DISABLE_SIGNUP` environment variable to `true`. Be sure that you've first signed in to the space before setting this variable.
56-
>
57-
> Inside of the app, you can use [the native Langfuse features](https://langfuse.com/docs/rbac) to manage Organizations, Projects, and Users.
58+
> **Note:** If you've set the `AUTH_DISABLE_SIGNUP` environment variable to `true` to restrict access, and want to grant a new user access to the space, you'll need to first set it back to `false` (wait for rebuild to complete), add the user and have them authenticate with OAuth, and then set it back to `true`.
59+
60+
61+
## Step 2: Use Langfuse
62+
63+
Now that you have Langfuse running, you can start instrumenting your LLM application to capture traces and manage your prompts.
5864

5965
### Monitor Any Application
6066

0 commit comments

Comments
 (0)