Explain secrets on the hub page, closes #1827

This commit is contained in:
José Valim 2023-03-25 22:50:26 +01:00
parent 6d91320441
commit 9fa8fcef1b
2 changed files with 8 additions and 2 deletions

View file

@ -23,7 +23,7 @@ defmodule LivebookWeb.Hub.Edit.PersonalComponent do
@impl true
def render(assigns) do
~H"""
<div id={"#{@id}-component"} class="space-y-8">
<div id={"#{@id}-component"} class="space-y-8 pb-8">
<div class="space-y-4">
<LayoutHelpers.title text={"#{@hub.hub_emoji} #{@hub.hub_name}"} />
@ -69,6 +69,12 @@ defmodule LivebookWeb.Hub.Edit.PersonalComponent do
Secrets
</h2>
<p class="text-gray-700">
Secrets are a safe way to share credentials and tokens with notebooks.
They are often shared with Smart cells and can be read as
environment variables using the <code>LB_</code> prefix.
</p>
<.secrets_list
id="hub-secrets-list"
new_secret_path={~p"/hub/#{@hub.id}/secrets/new"}

View file

@ -192,7 +192,7 @@ defmodule LivebookWeb.SessionLive.SecretsListComponent do
~S'''
Secrets are a safe way to share credentials
and tokens with notebooks. They are often
accessed by Smart cells and can be read as
shared with Smart cells and can be read as
environment variables using the LB_ prefix.
'''
}