mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2026-09-21 22:25:22 +08:00
Compare commits
36 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c51abe2e5 | |||
| 02b1a9758c | |||
| d966acdf6c | |||
| b9d74ae5ae | |||
| 2bed3fc0f7 | |||
| d4403aa37e | |||
| 2e3a6dbe55 | |||
| 77cf0f30ae | |||
| 35c5778c2d | |||
| 09f62ba15b | |||
| 6cb3f8196c | |||
| d4d84ba02c | |||
| bf2d964f6f | |||
| e0b7fb752e | |||
| 61419b36d6 | |||
| a1f741433d | |||
| bf4dca9d8e | |||
| 4369819153 | |||
| d4a9011612 | |||
| 4b49843a52 | |||
| 1b2e963616 | |||
| f85e1bae12 | |||
| 8e8f89cdc5 | |||
| e9f72e6ef0 | |||
| 055751bf9e | |||
| 8bb0d8b3ce | |||
| 7293bea8ec | |||
| 93eda1c97c | |||
| 7b075b3367 | |||
| c0170dd157 | |||
| 82725684f9 | |||
| 7bf29be338 | |||
| 069d4f1b5c | |||
| 0fb32f477b | |||
| 844957283c | |||
| 9b1bf7278e |
+1
-1
@@ -5,7 +5,7 @@ RUN apk update && apk add --no-cache --upgrade rsync openssh openssl busybox
|
||||
RUN rm -rf /var/cache/apk/*
|
||||
|
||||
COPY docker-rsync/* /bin/
|
||||
RUN chmod +x /bin/agent-* /bin/ssh-* /bin/hosts-*
|
||||
RUN chmod +x /bin/agent-*
|
||||
|
||||
FROM base AS build
|
||||
|
||||
|
||||
@@ -53,14 +53,14 @@ This action needs secret variables for the ssh private key of your key pair. The
|
||||
|
||||
For simplicity, we are using `REMOTE_*` as the secret variables throughout the examples.
|
||||
|
||||
## Current Version: v8 (8.0.1)
|
||||
## Current Version: v8 (8.0.0)
|
||||
|
||||
### Release channels:
|
||||
|
||||
| Version | Purpose | Immutable |
|
||||
| ------- | ------------------ | ------------------ |
|
||||
| ``v8`` | latest release (pointer to 8.x.x) | no, points to latest MINOR,PATCH |
|
||||
| 8.0.1 | latest major release | yes |
|
||||
| 8.0.0 | latest major release | yes |
|
||||
| 7.1.0 | previous release | yes |
|
||||
|
||||
Check [SECURITY.md](SECURITY.md) for support cycles.
|
||||
|
||||
+1
-2
@@ -8,8 +8,7 @@ The following versions are currently being supported with security updates:
|
||||
|
||||
| Version | Supported | Rsync version | Alpine version |
|
||||
| ------- | ------------------ | ------------------ | ------------------ |
|
||||
| 8.0.1 | :white_check_mark: | >= 3.4.1-r1 | 3.23.0 |
|
||||
| 8.0.0 | :x: EOL (due to regression #90) | >= 3.4.1-r1 | 3.23.0 |
|
||||
| 8.0.0 | :white_check_mark: | >= 3.4.1-r1 | 3.23.0 |
|
||||
| 7.1.0 | :white_check_mark: | >= 3.4.1-r0 | 3.22.1 |
|
||||
| 7.0.2 | :warning: DEPRECATED | >= 3.4.0-r0 | 3.22.1 |
|
||||
| 7.0.1 | :x: EOL | < 3.4.0 | 3.22.1 |
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
# Scripts
|
||||
|
||||
Shell-scripts to help with managing SSH agents and known hosts files.
|
||||
|
||||
### SSH Management
|
||||
|
||||
#### ssh-init
|
||||
This command create the ``$HOME/.ssh`` folder with default permissions ``700``.
|
||||
|
||||
### SSH-Agent Management
|
||||
|
||||
#### agent-start
|
||||
This command starts the SSH agent, if it isn't already started (SSH_AGENT_PID set or ssh agent ID file found).
|
||||
It takes one optional argument, for the name of the agent to be started. Defaults to "default".
|
||||
This program needs to be source'd to work correctly.
|
||||
`source agent-start "default"`
|
||||
|
||||
#### agent-stop
|
||||
This command stops the SSH agent, if it is started (SSH_AGENT_PID set or ssh agent ID file found).
|
||||
It takes one optional argument, for the name of the agent to be stopped. Defaults to "default".
|
||||
`agent-stop "my-agent-name"`
|
||||
|
||||
#### agent-add
|
||||
This command adds a key to the currently running SSH agent. The key is taken from stdin, and the agent used is that in SSH_AGENT_PID.
|
||||
|
||||
#### agent-askpass
|
||||
This command is called by ssh-add when the [SSH_ASKPASS](https://man.openbsd.org/ssh-add.1#ENVIRONMENT) variable is set active. The command returns the SSH_PASS to [ssh-askpass(1)](https://man.openbsd.org/ssh-askpass.1).
|
||||
|
||||
This command is ignored by ssh-add if the key does not require a passphrase.
|
||||
|
||||
### known_hosts management
|
||||
|
||||
#### hosts-init
|
||||
This command creates the known_hosts file (``$HOME/.ssh/known_hosts``) with default permission ``600``.
|
||||
|
||||
#### hosts-add
|
||||
This command adds an entry to the known hosts file, and ensures its permissions are correct. It takes one argument, which is the new key to add.
|
||||
|
||||
#### hosts-clear
|
||||
This command truncates the known_hosts file.
|
||||
+1
-1
@@ -17,7 +17,7 @@ source hosts-init
|
||||
|
||||
# Start the SSH agent and load key.
|
||||
source agent-start "$GITHUB_ACTION"
|
||||
echo "$INPUT_REMOTE_KEY" | SSH_PASS="$INPUT_REMOTE_KEY_PASS" agent-add
|
||||
printf '%s' "$INPUT_REMOTE_KEY" | SSH_PASS="${INPUT_REMOTE_KEY_PASS}" agent-add >/dev/null 2>&1
|
||||
|
||||
# Variables.
|
||||
LEGACY_RSA_HOSTKEYS=""
|
||||
|
||||
Reference in New Issue
Block a user