Skip to content

Commit 21819eb

Browse files
Merge pull request #391 from OpenFn/project
New V2 docs on Manage Project and Manage Credentials
2 parents ede3809 + 6ef2edd commit 21819eb

15 files changed

+121
-5
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: Manage Credentials
3+
---
4+
5+
You can view the Credentials related to a Project under the Project
6+
`Settings > Credentials` page. In this article, you'll learn how to manage your
7+
credentials related to a project.
8+
9+
### View all Project Credentials
10+
11+
Via this `Credentials` page, you can see a list of all Credentials, including
12+
the name, type, and owner, and whether they are for a production environment.
13+
14+
![Credentials Overview](/img/lightning_credentials_overview.png)
15+
16+
:::info Viewing credential secrets
17+
18+
All Project Collaborators can view the credential name, type, and owner, but
19+
only the Credential Owner can view the credential secrets (username, password,
20+
etc.).
21+
22+
:::
23+
24+
### Create a new Credential
25+
26+
1. Click on the `New Credential` button, and choose the type of app you want to
27+
connect.
28+
29+
2. If your app is not listed, choose "Raw JSON" to create your own custom
30+
credential or "configuration" input. For example:
31+
32+
```json
33+
{ "loginUrl": "https://random-app.com", "username": "test", "password": "pwd" }
34+
```
35+
36+
![Credential Type](/img/lightning_choose_cred_type.png)
37+
38+
3. Click `Configure Credentials` and add the authentication details for your
39+
app. The credential form will indicate which fields are required.
40+
41+
![Add Credential](/img/lightning_add_cred.png)
42+
43+
:::tip Not sure how to fill in all credential details?
44+
45+
While creating a new credential form, if you're not sure what some of these
46+
fields require (e.g., "security token"), then head over to the relevant
47+
`Adaptors` docs page to learn more and read about the "configuration schema" or
48+
ask on [Community](https://community.openfn.org).
49+
50+
:::
51+
52+
3. Click `Save` and you'll see it listed in your `Credentials` page. You can now
53+
use it across the Project when building and running Workflows.
54+
55+
![New Credential Ready](/img/lightning_new_cred_ready.png)
56+
57+
### Share Credentials
58+
59+
If you own a Credential, you can choose which Project has access to it. To update which Projects your Credential is shared with, follow the steps on the User Credentials docs page.

docs/manage-projects/platform-mgmt.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@
22
title: Project Management
33
---
44

5-
:::warning Under construction
5+
## What is a Project?
66

7-
This docs page is under construction. Check back later for the complete docs, or check out the Docs Version "Platform (v1)".
7+
A `Project` on OpenFn is a shared workspace for a team or organization that
8+
contains their Workflows, Credentials and Collaborators scoped to that project.
89

9-
:::
10+
## Updating Project Information
11+
12+
You can access your Project's information under `Settings` (see app menu
13+
sidebar). Setup allows you to view or edit the project name and description.
14+
15+
![Project Overview](/img/lightning_project_overview.png)
16+
17+
You can also export your entire project "as code" - either to save it, or to
18+
edit your project locally. You can learn more about this feature on our
19+
[Portability page](/documentation/next/deploy/portability).

docs/manage-projects/user-roles-permissions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ When OpenFn Users are invited to work on your Project as `Collaborators`, they a
3333
| Settings| Change Input/Output Dataclip storage policy | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: |"
3434
| Settings| Change History retention period | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: |"
3535
| Settings| Update GitHub project/repo connection | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: |"
36-
| Settings| Initiate GitHub sync | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: |"
36+
| Settings| Initiate GitHub sync | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: |"
37+
38+
Contact your app's super admin if you need to add/remove project collaborators or modify a user's role.

docs/manage-users/user-credentials.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Manage User Credentials
3+
sidebar_label: User Credentials
4+
slug: /user-credentials
5+
---
6+
7+
You can manage all the Credentials you own under the `Credentials` page of your profile. This article, we'll walk you through how to manage and share the Credentials you own across projects.
8+
9+
### All your Credentials in one place
10+
11+
The `Credentials` page of your `User Settings` allows you to add, view, edit or delete the Credentials you own. It is the central place to manage your Credentials across all projects you collaborate on.
12+
13+
![User Credential](/img/lightning_user_profile_credentials.png)
14+
15+
![User Credentials List](/img/lightning_edit_user_credential.png)
16+
17+
For guidance on how to set up a new Credential, head over to our [Manage Credentials](/documentation/next/manage-projects/manage-credentials) page.
18+
19+
You can update the name and login details of a Credential after clicking `Edit`.
20+
21+
![User Credential Edit View](/img/lightning_cred_edit_view.png)
22+
23+
24+
### Share Credentials
25+
26+
You can also allow multiple projects to have access to a Credential you own.
27+
28+
To add or remove project access, click `Edit` on the Credential you want to share, and choose the project from the dropdown under `Project Access`.
29+
30+
![Update Project Access](/img/lightning_share_cred_with_project.png)
31+
32+
:::info Shared Credentials remain secret
33+
34+
If you share a Credential with a Project, Collaborators of that Project can _use_ the Credential in their Workflows, but they won't be able to see the login details contained.
35+
36+
:::
37+
38+
:::tip
39+
40+
If you want to share the login details contained in the Credential, use a secure sharing protocol like a password manager or an encrypted messaging platform.
41+
42+
:::

sidebars-main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,17 @@ module.exports = {
9898
'manage-projects/platform-mgmt',
9999
'manage-projects/retention-periods',
100100
'manage-projects/io-data-storage',
101+
'manage-projects/manage-credentials',
101102
'manage-projects/user-roles-permissions',
102103
'manage-projects/notifications',
103104
],
104105
},
105106
{
106107
type: 'category',
107108
label: 'Manage Users & Credentials',
108-
items: ['manage-users/user-profile'],
109+
items: ['manage-users/user-profile',
110+
'manage-users/user-credentials'
111+
],
109112
},
110113
{
111114
type: 'category',

static/img/lightning_add_cred.png

40.8 KB
Loading
105 KB
Loading
52.9 KB
Loading
81 KB
Loading
25.8 KB
Loading

0 commit comments

Comments
 (0)