Skip to content

Commit f3892b1

Browse files
authored
Merge pull request #112190 from tijoytom/update_css_doc
Updating the CSS doc to include a note about using windows auth
2 parents c1ea8c7 + 29d7cfc commit f3892b1

File tree

1 file changed

+3
-67
lines changed

1 file changed

+3
-67
lines changed

articles/service-fabric/service-fabric-application-secret-store.md

Lines changed: 3 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,9 @@ Add the following script to your cluster configuration under `fabricSettings` to
4343
]
4444
```
4545
## Declare a secret resource
46-
You can create a secret resource by using either the Azure Resource Manager template or the REST API.
47-
48-
### Use Resource Manager
49-
50-
Use the following template to use Resource Manager to create the secret resource. The template creates a `supersecret` secret resource, but no value is set for the secret resource yet.
51-
52-
53-
```json
54-
"resources": [
55-
{
56-
"apiVersion": "2018-07-01-preview",
57-
"name": "supersecret",
58-
"type": "Microsoft.ServiceFabricMesh/secrets",
59-
"location": "[parameters('location')]",
60-
"dependsOn": [],
61-
"properties": {
62-
"kind": "inlinedValue",
63-
"description": "Application Secret",
64-
"contentType": "text/plain",
65-
}
66-
}
67-
]
68-
```
69-
70-
### Use the REST API
46+
You can create a secret resource by using the REST API.
47+
> [!NOTE]
48+
> If the cluster is using windows authentication, the REST request is sent over unsecured HTTP channel. The recommendation is to use a X509 based cluster with secure endpoints.
7149
7250
To create a `supersecret` secret resource by using the REST API, make a PUT request to `https://<clusterfqdn>:19080/Resources/Secrets/supersecret?api-version=6.4-preview`. You need the cluster certificate or admin client certificate to create a secret resource.
7351

@@ -78,48 +56,6 @@ Invoke-WebRequest -Uri https://<clusterfqdn>:19080/Resources/Secrets/supersecre
7856

7957
## Set the secret value
8058

81-
### Use the Resource Manager template
82-
83-
Use the following Resource Manager template to create and set the secret value. This template sets the secret value for the `supersecret` secret resource as version `ver1`.
84-
```json
85-
{
86-
"parameters": {
87-
"supersecret": {
88-
"type": "string",
89-
"metadata": {
90-
"description": "supersecret value"
91-
}
92-
}
93-
},
94-
"resources": [
95-
{
96-
"apiVersion": "2018-07-01-preview",
97-
"name": "supersecret",
98-
"type": "Microsoft.ServiceFabricMesh/secrets",
99-
"location": "[parameters('location')]",
100-
"dependsOn": [],
101-
"properties": {
102-
"kind": "inlinedValue",
103-
"description": "Application Secret",
104-
"contentType": "text/plain",
105-
}
106-
},
107-
{
108-
"apiVersion": "2018-07-01-preview",
109-
"name": "supersecret/ver1",
110-
"type": "Microsoft.ServiceFabricMesh/secrets/values",
111-
"location": "[parameters('location')]",
112-
"dependsOn": [
113-
"Microsoft.ServiceFabricMesh/secrets/supersecret"
114-
],
115-
"properties": {
116-
"value": "[parameters('supersecret')]"
117-
}
118-
}
119-
],
120-
```
121-
### Use the REST API
122-
12359
Use the following script to use the REST API to set the secret value.
12460
```powershell
12561
$Params = '{"properties": {"value": "mysecretpassword"}}'

0 commit comments

Comments
 (0)