-
Notifications
You must be signed in to change notification settings - Fork 128
docs: Secret object/array inputs #1682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
944a82f
97a13d7
97c991c
4983d01
5cb88ac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,15 +37,17 @@ The editor for this input field will then turn into a secret input, and when you | |
|
||
<img src={require("./images/secret-input-editor.png").default} alt="Secret input editor" style={{ width: '100%', maxWidth: '822px' }}/> | ||
|
||
When running the Actor through the API, input fields marked as secret are also encrypted automatically before being saved in the Actor run's default key-value store. | ||
|
||
:::note Type restriction | ||
|
||
This is only available for `string` inputs, and the editor type is limited to `textfield` or `textarea`. | ||
This feature supports `string`, `object`, and `array` inputs. The available editor types are `hidden` (for any of these), `textfield` and `textarea` (for `string` input), and `json` (for `object` and `array` inputs). | ||
mfori marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
::: | ||
|
||
## Read secret input fields | ||
|
||
When you read the Actor input through `Actor.getInput()`, the encrypted fields are automatically decrypted (starting with the [`apify` package](https://www.npmjs.com/package/apify) version 3.1.0). | ||
When you read the Actor input through `Actor.getInput()`, the encrypted fields are automatically decrypted. Decryption of string fields is supported since [JavaScript SDK](http://docs.apify.loc/sdk/js/) 3.1.0; support for objects and arrays was added in [JavaScript SDK](http://docs.apify.loc/sdk/js/) 3.4.2 and [Python SDK](http://docs.apify.loc/sdk/python/) 2.7.0. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure about the note with starting support for string fields since There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably safe, it's in the respective git tag: https://github.com/apify/apify-sdk-js/blob/apify%403.1.0/packages/apify/src/actor.ts#L660 |
||
|
||
<!-- eslint-skip --> | ||
```js | ||
|
Uh oh!
There was an error while loading. Please reload this page.