Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc24ffb8

Browse files
committed
Update automating-shared-secrets-creation.md
Edited and formatted content
1 parentd3620ea commitc24ffb8

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

‎_docs/kb/articles/automating-shared-secrets-creation.md‎

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title:"How To:AutomatingShared Secrets Creation"
2+
title:"How To:Automate creation ofShared Secrets"
33
description:
44
group:kb
55
sub-group:articles
@@ -17,9 +17,12 @@ You have numerous secrets to manage across different pipelines and want to make
1717

1818
##Details
1919

20-
The script reads each line from the provided file and appends it to thecodefreshcreate context secret command. This results in a single command that creates a secret context with all the specified secrets.
20+
The script reads each line from the provided file and appends it to theCodefresh`create context secret` command. This results in a single command that creates a secret context with all the specified secrets.
2121

22-
The Script:
22+
>**NOTE**
23+
Ensure you have the necessary permissions to create contexts in Codefresh.
24+
25+
**Script**
2326

2427
```bash
2528
#!/bin/bash
@@ -35,20 +38,27 @@ done < "$1"
3538
echo"$CMD"
3639
```
3740

38-
Steps toUse theScript:
41+
**How touse thescript**
3942

40-
1. Prepare Your Secret List: Start by preparing a file containing your secrets. Each line in the file should contain one secret in the format KEY=VALUE.
43+
1. Prepare your secrets list
44+
Start by preparing a file containing your secrets. Each line in the file should contain one secret in the format KEY=VALUE.
4145

42-
2. Set Execution Permissions: Make the script executable by running chmod +x script_name.sh.
46+
2. Set execution permissions
47+
Make the script executable by running:
48+
`chmod +x script_name.sh`
4349

44-
3. Run the Script: Execute the script with the command ./script_name.sh secret_list.txt, where secret_list.txt is the file containing your secrets.
50+
3. Run the script
51+
Execute the script with the command:
52+
`./script_name.sh secret_list.txt`
53+
where:
54+
`secret_list.txt` is the file containing your secrets
4555

46-
4. Verify the Creation: After execution, verify that the secret context has been created in Codefresh with the specified secrets.
56+
4. Verify creation
57+
After executing the script, verify that the secret context has been created in Codefresh with the specified secrets.
4758

48-
>**Note** : Ensure you have the necessary permissions in Codefresh to create contexts.
4959

50-
##Related Items
5160

61+
##Related articles
5262
[Secrets in pipelines]({{site.baseurl}}/docs/pipelines/configuration/secrets-store/)
5363
[Configuring access control for pipelines]({{site.baseurl}}/docs/administration/account-user-management/access-control/)
5464
[Pipeline execution context]({{site.baseurl}}docs/administration/account-user-management/pipeline-execution-context/)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp