Skip to content

Commit 308ffbf

Browse files
committed
made additional edits as suggested by @erikadoyle
1 parent 9c6d226 commit 308ffbf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Invoke-WebRequest -Uri https://<clusterfqdn>:19080/Resources/Secrets/supersecret
128128

129129
Follow these steps to use the secret in your Service Fabric application.
130130

131-
1. Add a section in the **settings.xml** file with the following script. Note here that the value is in the format {`secretname:version`}.
131+
1. Add a section in the **settings.xml** file with the following snippet. Note here that the value is in the format {`secretname:version`}.
132132

133133
```xml
134134
<Section Name="testsecrets">
@@ -149,12 +149,12 @@ Follow these steps to use the secret in your Service Fabric application.
149149
</ServiceManifestImport>
150150
```
151151

152-
`EnvironmentVariableName=SecretPath` will point to the directory where all secrets are stored. Each parameter listed under the `testsecrets` section is stored in a separate file. The application can now use the secret as follows:
152+
The environment variable `SecretPath` will point to the directory where all secrets are stored. Each parameter listed under the `testsecrets` section is stored in a separate file. The application can now use the secret as follows:
153153
```C#
154154
secretValue = IO.ReadFile(Path.Join(Environment.GetEnvironmentVariable("SecretPath"), "TopSecret"))
155155
```
156-
3. Mount the secrets to a container. The only change required to make the secrets available inside the container is to specify a mount point in `<ConfigPackage>`.
157-
The following script is the modified **ApplicationManifest.xml**.
156+
1. Mount the secrets to a container. The only change required to make the secrets available inside the container is to `specify` a mount point in `<ConfigPackage>`.
157+
The following snippet is the modified **ApplicationManifest.xml**.
158158

159159
```xml
160160
<ServiceManifestImport>
@@ -172,7 +172,7 @@ The following script is the modified **ApplicationManifest.xml**.
172172
```
173173
Secrets are available under the mount point inside your container.
174174

175-
4. You can bind a secret to a process environment variable by specifying `Type='SecretsStoreRef`. The following script is an example of how to bind the `supersecret` version `ver1` to the environment variable `MySuperSecret` in **ServiceManifest.xml**.
175+
4. You can bind a secret to a process environment variable by specifying `Type='SecretsStoreRef`. The following snippet is an example of how to bind the `supersecret` version `ver1` to the environment variable `MySuperSecret` in **ServiceManifest.xml**.
176176

177177
```xml
178178
<EnvironmentVariables>

0 commit comments

Comments
 (0)