Commit graph

41 commits

Author SHA1 Message Date
Jonatan Kłosko
602d852b31
Update to Phoenix LV 1.0 (#2607) 2024-05-16 18:17:45 +02:00
Jonatan Kłosko
63668c49fb
Add end-to-end app deployment flow with Livebook Teams (#2602) 2024-05-14 13:20:14 +02:00
José Valim
6bd7bbd1fc Fix race condition on select secret 2024-04-23 19:47:44 +02:00
Hugo Baraúna
f7728c6859
Change copy about the relationship of a notebook and secrets (#2575) 2024-04-19 10:45:32 -03:00
Jonatan Kłosko
1a8d46a89a
Minimize lifespan of param-driven assigns (#2509) 2024-03-13 16:47:45 +01:00
Jonatan Kłosko
4587396c9a
Encapsulate buttons and inputs in components (#2477) 2024-02-08 19:27:16 +01:00
Cristine Guadelupe
4ad2b7a7d1
Correctly renders external title (#2146) 2023-08-08 01:27:14 +07:00
Alexandre de Souza
bcfb6d46ea
Add Team hub from environment variables (#2020) 2023-06-30 19:11:31 -03:00
Alexandre de Souza
05d691d407
Redirect to Hub page to update or delete a secret (#2005) 2023-06-23 17:54:13 -03:00
Alexandre de Souza
7f9ba6989f
Allow secret creation from Livebook for Team Hubs (#1978) 2023-06-15 17:33:22 -03:00
José Valim
7ff4b640f6
Convert secret value to password field (#1921) 2023-05-23 20:22:06 +02:00
Jonatan Kłosko
022f395bce
Add output type setting to apps (#1905) 2023-05-11 14:07:19 +02:00
Jonatan Kłosko
deacb1a4a4
Explicitly track which secrets come from the hub (#1769) 2023-03-11 12:51:06 +01:00
José Valim
5c106e81fa
Small changes (#1764) 2023-03-09 17:41:40 +01:00
Alexandre de Souza
8754bc0d5a
Shows only the secrets from selected hub (#1747) 2023-03-07 15:24:07 -03:00
Alexandre de Souza
5d48ffd051
Remove entire app secrets implementation (#1734) 2023-02-28 10:55:52 -03:00
Wojtek Mach
1f496c8605
Typing env and secret name automatically upcases (#1736) 2023-02-28 13:53:18 +01:00
Alexandre de Souza
bfcf82f06b
Implements Secrets features inside hub's Provider (#1712) 2023-02-27 13:45:14 -03:00
Jonatan Kłosko
be033b9074
Refactor secrets form (#1721) 2023-02-23 10:40:32 +01:00
Jonatan Kłosko
5b5593a54b
Update to Phoenix 1.7 (#1720) 2023-02-22 19:34:54 +01:00
Alexandre de Souza
e58213b000
More improvements for Secrets and Hubs (#1693) 2023-02-06 20:37:11 -03:00
Wojtek Mach
c1b60c14e9
"Add secret" form improvements (#1687)
1. Add label for "name" and "value" inputs
2. Display validation error when secret already exists in a hub
3. Change hub select to a list of radio buttons
2023-02-04 17:50:50 +01:00
Alexandre de Souza
5f6e7176fc
Allow hub secret toggling (#1675) 2023-02-03 13:15:46 -03:00
Alexandre de Souza
887d423007
Improve hubs provider API (#1670) 2023-02-01 13:33:41 -03:00
Alexandre de Souza
d70764517f
Implements :origin field to Secret struct (#1667) 2023-01-31 19:17:05 -03:00
Alexandre de Souza
3b2ea3c8ce
Update Connection life-cycle and implement ChangesetError message (#1633) 2023-01-10 17:12:35 -03:00
Alexandre de Souza
b82e360df9
Implement Enterprise secret creation from Session (#1612) 2023-01-06 16:14:44 -03:00
José Valim
5c053a9573
Always sync livebook secrets with session (#1477) 2022-10-11 16:12:14 +02:00
José Valim
950982304d
Final touchups to secrets (#1464)
* Use font-mono on secret names
* Unify error handling with changesets
* Unify put_env/delete_env as set_env/unset_env
* Review text and descriptions
2022-10-06 21:44:04 +02:00
Cristine Guadelupe
4c83317453
Notebook secrets (#1457)
* Store secrets in the notebook

* Automatically grants access to secrets

* Put notebook secrets on session

* Shows secrets as a list

* Grant access message box

* Grant access confirmation on select

* Applying suggestions - grant access confirmation

* Handles unavailable secrets

* Toggle secrets

* Session only secrets

* Sync secrets

* Fix delete runtime secret

* Clean up

* Component helpers

* Does not store secrets in notebooks

* Store Livebook secrets

* Fix sync secrets

* Tests for secrets

* Doesn't refetch livebook_secrets

* Removes unused function

* More test for secrets

* Livebook secrets as maps

* Fix secret tests

* Applying suggestions

* All secrets as a map

* Shows grant access for missing secret errors

* Unifies grant access

* Fix set_runtime_secrets

* Applying suggestions

* Updates sync secrets tests

* Fix active secret

* Unifies prefill secret name
2022-10-06 13:41:26 -03:00
José Valim
6da00daffd
Update to LV 0.18 (#1426) 2022-10-04 08:46:55 +02:00
Cristine Guadelupe
d494e58c6a
Secrets modal title from options (#1443)
* Secrets modal title from options

* Applying suggestions
2022-09-27 23:25:07 -03:00
Cristine Guadelupe
72ea4cebf9
Secrets modal - new layout (#1441)
* Secrets modal - new layout

* Layout adjustments

* Layout adjustments

* Applying suggestions

* Update lib/livebook_web/live/session_live/secrets_component.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-09-27 17:26:21 -03:00
Cristine Guadelupe
52f7d7419b
Changes secrets wording form label to name (#1419) 2022-09-18 18:40:09 -03:00
Cristine Guadelupe
bf09441555
Secrets from modal (#1406)
* Secrets from modal

* Format assets

* Applying suggestions

* Format assets

* Applying suggestions

* Unavailable secret

* Applying suggestions - select_secret_ref

* Applying suggestions

* Applying suggestions - iframe v4
2022-09-16 17:56:40 -03:00
José Valim
be862173a3
Unify several forms in the application (#1392)
* Define .input_wrapper and .hex_color_input components

* Define Tailwind variants from Phoenix v1.6 to help styling

* Make sure single-action modals redirect on save

* Add pill to session secrets in the "Secrets" session sidebar

* Fix alignments of "Users" in the session sidebar
2022-09-05 23:59:13 +02:00
Cristine Guadelupe
97efef52cc
Fix secrets form (#1379)
* Fix secrets form

* Update lib/livebook_web/live/session_live/secrets_component.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Applying suggestions

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-09-02 15:04:41 -03:00
José Valim
31c6f7adf7 Style secrets modal consistently with other add modals 2022-09-01 08:09:27 +02:00
Cristine Guadelupe
443ff8bf9f
Unavailable secret error (#1371)
* Show an Add Secret button for System.EnvError

* Extracts render_formatted

* Rewrite the env error message

* Renames the env error type

* Applying suggestions

* Applying suggestions (live patch)

* Test for unavailable secrets

* Bump to rc.1

* Applying suggestions (error message)

* New error message

* Prefill the secret value

* Applying suggestions (error message output)

* Update test/livebook_web/live/session_live_test.exs

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Update lib/livebook/runtime.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-31 20:45:55 -03:00
José Valim
905dce45ef More consistent use of padding throughout 2022-08-31 23:53:23 +02:00
Cristine Guadelupe
afcb2ff834
Livebook secrets (#1348)
* Add secrets to the sidebar

* Get and put secrets (naive)

* Secrets list - shortcut

* Validates secret name

* Livebook secrets as environment variables

* Restores secrets when necessary

* Minor adjustments

* Implements add_system_envs for NoopRuntime

* Moves secrets to session data

* Granular operations for secrets

* Minor adjustments

* Applying suggestions

* Test for add secrets

* Type for secret

* Applying suggestions

* Prevents duplicates

* Refactor to live_render

* Update lib/livebook/session/data.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Sort secrets

* Applying suggestions

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-25 17:24:24 -03:00