Skip to content

Commit 5de7bee

Browse files
alexbarcelofabaff
authored andcommitted
New ssh deployment key feature for git_pull addon (home-assistant#3835)
Explanation for the two new fields `deployment_key` and `deployment_key_protocol`. See PR home-assistant/addons#196
1 parent 0f61509 commit 5de7bee

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

source/_addons/git_pull.markdown

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,30 @@ Load and update configuration files for Home Assistant from a GIT repository.
1818
"repeat": {
1919
"active": false,
2020
"interval": 300
21-
}
21+
},
22+
"deployment_key": [
23+
"-----BEGIN RSA PRIVATE KEY-----",
24+
"MIIEowIBAAKCAQEAv3hUrCvqGZKpXQ5ofxTOuH6pYSOZDsCqPqmaGBdUzBFgauQM",
25+
"xDEcoODGHIsWd7t9meAFqUtKXndeiKjfP0MMKsttnDohL1kb9mRvHre4VUqMsT5F",
26+
"...",
27+
"i3RUtnIHxGi1NqknIY56Hwa3id2yk7cEzvQGAAko/t6PCbe20AfmSQczs7wDNtBD",
28+
"HgXRyIqIXHYk2+5w+N2eunURIBqCI9uWYK/r81TMR6V84R+XhtvM",
29+
"-----END RSA PRIVATE KEY-----"
30+
],
31+
"deployment_key_protocol": "rsa"
2232
}
2333
```
2434

2535
- **repository** (*Required*): GIT url to your repository.
2636
- **auto_restart** (*Optional*): Make a restart of Home-Assistant if the config have change and is valid.
2737
- **repeat/active** (*Optional*): Pull periodic for GIT updates.
2838
- **repeat/interval** (*Optional*): Pull all x seconds and look for changes.
39+
- **deployment_key** (*Optional*): A private SSH key that will be used for communication during git operations. This key is mandatory for ssh-accessed repositories, which are the ones with the following pattern: `<user>@<host>:<repository path>`.
40+
- **deployment_key_protocol** (*Optional*): The key protocol. Default is "rsa". Valid protocols are:
41+
42+
* **dsa**
43+
* **ecdsa**
44+
* **ed25519**
45+
* **rsa**
46+
47+
The protocol is typically known by the suffix of the private key --e.g., a key file named `id_rsa` will be a private key using "rsa" protocol.

0 commit comments

Comments
 (0)