Provide Admin API access to flow credentials #44
Replies: 3 comments 5 replies
-
How would they be exported? as a separte file/object still encrypted or would they be embedded in the flow? |
Beta Was this translation helpful? Give feedback.
-
Seems like a sensible approach. Though maybe some warnings in the documentation about not allowing this over a remote connection unless it is encrypted would be useful. The optional encryption certainly something to think about. Also what about projects? If this feature is on, is there an impact on projects and the use of git? I don't think so but I don't really use projects so I'm not certain. |
Beta Was this translation helpful? Give feedback.
-
I also feel it would be nice to have the option (and perhaps that should be the default) to have those encrypted, upon export the user can choose a password to encrypt. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As a strict rule, the admin API (
GET /flow
andGET /flows
) does not return password credentials included in the flow.This ensures they cannot be accidentally accessed if the admin api is left unsecured.
However there are cases where it would be useful to export a full flow - including credentials - from the editor. For example, where you want to export your flows, including credentials, to copy them to another instance of NR, but you don't have CLI access to copy the files.
I want to explore how we could expose credentials, securely, via the admin api.
The general idea is:
GET /flow
andGET /flows
endpoints to request credentials are included - the default would remain to not return the credentials.credentials.read
). Unlike other permissions, this would be handled as a special case - a user with*
permission (currently full read/write access) would not have this new permission by default.adminAuth
must be enabledThis would ensure the administrator of the NR instance is in control of who is able to access credentials remotely.
Beta Was this translation helpful? Give feedback.
All reactions