Skip to content

Commit baed0e9

Browse files
update Open Source Docs from Roblox internal teams
1 parent 07cc2c2 commit baed0e9

File tree

5 files changed

+26
-22
lines changed

5 files changed

+26
-22
lines changed
Lines changed: 3 additions & 0 deletions
Loading

content/en-us/cloud-services/secrets.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,23 @@ To view, create, or edit secrets, you must be the experience owner or group owne
2525

2626
### Local secrets
2727

28-
Secrets are only available to live game servers or [Team Test](../studio/testing-modes.md#collaborative-testing) environments. If you try to access a secret from a local test server, such as the **Play** button in Studio, you receive a `Can't find secret with given key` error.
28+
For security reasons, the secrets store for each experience is only available to live game servers or [Team Test](../studio/testing-modes.md#collaborative-testing) environments. If you try to access a secret from a local test server, such as after pressing the **Play** button in Studio, you receive a `Can't find secret with given key` error.
2929

30-
To specify secrets for local testing, see [Game Settings](../studio/game-settings.md#security).
30+
To specify secrets for local testing, add valid JSON objects with base64-encoded secrets in [Game Settings](../studio/game-settings.md#security). The JSON can contain spaces, but must be on a single line.
31+
32+
<img alt="Local secret in the Game Settings window." src="../assets/data/secrets-store/local-secrets.png" width="700" />
33+
34+
For example, the following is the base64-encoded string `abcdefghijklmnopqrstuvwxyz` restricted to subdomains at `example.com`:
35+
36+
```json
37+
{"secretName": ["YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo=", "*.example.com"]}
38+
```
39+
40+
To add multiple secrets, separate the values with commas:
41+
42+
```json
43+
{"secretName1": ["dGVzdDE=", "*.example.com"],"secretName2": ["dGVzdDI=", "*.example.com"],"secretName3": ["dGVzdDM=", "*.example.com"]}
44+
```
3145

3246
## Use secrets
3347

content/en-us/reference/engine/classes/MarketplaceService.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,8 +1455,6 @@ callbacks:
14551455
transaction.
14561456
- `CurrencyType` &mdash; The type of currency spent in the purchase;
14571457
always `Enum.CurrencyType.Robux`.
1458-
- `Enum.ProductPurchaseChannel` &mdash; An enum that represents
1459-
how the user acquired the developer product.
14601458
returns:
14611459
- type: ProductPurchaseDecision
14621460
summary: |
Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,28 @@
11
name: ProductPurchaseChannel
22
type: enum
3-
summary: |
4-
Enum which works with `Class.MarketplaceService` to represent how the
5-
user acquired the developer product.
6-
description: |
7-
The `ProductPurchaseChannel` enum works with `Class.MarketplaceService` and
8-
represents how the user acquired the developer product.
3+
summary: ''
4+
description: ''
95
code_samples: []
106
tags: []
117
deprecation_message: ''
128
items:
139
- name: InExperience
14-
summary: |
15-
The purchase was made inside of an experience.
10+
summary: ''
1611
value: 1
1712
tags: []
1813
deprecation_message: ''
1914
- name: ExperienceDetailsPage
20-
summary: |
21-
The purchase was made outside of an experience, on the **Store** tab of
22-
the experience details page.
15+
summary: ''
2316
value: 2
2417
tags: []
2518
deprecation_message: ''
2619
- name: AdReward
27-
summary: |
28-
The product was rewarded to the user when they watched a video ad to
29-
completion.
20+
summary: ''
3021
value: 3
3122
tags: []
3223
deprecation_message: ''
3324
- name: CommerceProduct
34-
summary: |
35-
The user acquired the product as a benefit of purchasing commerce
36-
merchandise from the developer of the experience.
25+
summary: ''
3726
value: 4
3827
tags: []
3928
deprecation_message: ''

content/en-us/studio/game-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ You should only enable the following settings if you trust all assets from other
145145
</tr>
146146
<tr>
147147
<td>**Secrets**</td>
148-
<td>Allows for the creation and configuration of `Datatype.Secret` for local Studio sessions using `Class.HttpService`. Must be a valid JSON object, with base64-encoded secret. Example: `{"secretName": ["cGFzc3dvcmQ=", "*.domain.tld"]}`, where `cGFzc3dvcmQ=` is base64-encoded word `password`, and `*.domain.tld` is domain name restriction. For more information, see [Work with secrets](../cloud-services/secrets.md).</td>
148+
<td>Allows for the creation and configuration of `Datatype.Secret|Secrets` for local Studio sessions using `Class.HttpService`. For more information, see [Work with secrets](../cloud-services/secrets.md#local-secrets).</td>
149149
</tr>
150150
<tr>
151151
<td>**Enable&nbsp;Studio&nbsp;Access to API Services**</td>

0 commit comments

Comments
 (0)