Skip to content

Commit e8d83ad

Browse files
1.0.4
1 parent 86b9dd4 commit e8d83ad

File tree

4 files changed

+69
-60
lines changed

4 files changed

+69
-60
lines changed

CHANGELOG.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
1-
## [1.0.3](https://github.com/ReasonSoftware/ssh-manager/releases/tag/v1.0.3) - 2021-05-01
1+
## [1.0.4] - 2021-06-02
22
## Changed
33
- Updated dependencies
44

5-
## [1.0.2](https://github.com/ReasonSoftware/ssh-manager/releases/tag/v1.0.2) - 2021-04-26
5+
## [1.0.3] - 2021-05-01
66
## Changed
77
- Updated dependencies
88

9-
## [1.0.1](https://github.com/ReasonSoftware/ssh-manager/releases/tag/v1.0.1) - 2021-03-04
9+
## [1.0.2] - 2021-04-26
10+
## Changed
11+
- Updated dependencies
12+
13+
## [1.0.1] - 2021-03-04
1014
## Fixed
1115
- Logged application version
1216

1317
## Changed
1418
- Update users public key log message
1519
- Updated dependencies
1620

17-
## [1.0.0](https://github.com/ReasonSoftware/ssh-manager/releases/tag/v1.0.0) - 2021-02-10
18-
- First release
21+
## [1.0.0] - 2021-02-10
22+
- First release
23+
24+
[1.0.4]: https://github.com/ReasonSoftware/ssh-manager/compare/v1.0.3...v1.0.4
25+
[1.0.3]: https://github.com/ReasonSoftware/ssh-manager/compare/v1.0.2...v1.0.3
26+
[1.0.2]: https://github.com/ReasonSoftware/ssh-manager/compare/v1.0.1...v1.0.2
27+
[1.0.1]: https://github.com/ReasonSoftware/ssh-manager/compare/v1.0.0...v1.0.1
28+
[1.0.0]: https://github.com/ReasonSoftware/ssh-manager/releases/tag/v1.0.0

README.md

+51-51
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
- Prepare [Central Configuration](#central-configuration) once
2424
- Add new servers by:
25-
- Complete [Server Configuration](#server-configuration)
26-
- [Install](#installation) the service
25+
- Complete [Server Configuration](#server-configuration)
26+
- [Install](#installation) the service
2727

2828
*It is strongly recommended updating the service once in a while*
2929

@@ -102,17 +102,17 @@
102102

103103
1. Create a local configuration file `/root/ssh-manager.yml`
104104

105-
```yaml
106-
secret_name: ssh-manager
107-
region: us-west-1
108-
groups:
109-
- devops
110-
- poc
111-
```
105+
```yaml
106+
secret_name: ssh-manager
107+
region: us-west-1
108+
groups:
109+
- devops
110+
- poc
111+
```
112112
113-
- `secret_name` (required) - AWS Secret name with a central configuration
114-
- `region` - AWS region where a Secret is stored. Default **us-east-1**
115-
- `groups` (required) - a list of server group names from a central configuration
113+
- `secret_name` (required) - AWS Secret name with a central configuration
114+
- `region` - AWS region where a Secret is stored. Default **us-east-1**
115+
- `groups` (required) - a list of server group names from a central configuration
116116

117117
2. Create and attach an IAM Roles or configure an IAM User to allow EC2's to fetch the secret.
118118
- If using User Authentication, configure the credentials for root user.
@@ -128,39 +128,39 @@ groups:
128128
- Download latest [release](https://github.com/ReasonSoftware/ssh-manager/releases/latest) unzip to `/var/lib/ssh-manager`
129129
- Create **systemd** service under `/etc/systemd/system/ssh-manager.service` with the following content:
130130

131-
```
132-
[Unit]
133-
Description=Central SSH Management Service for AWS Linux EC2
134-
Wants=network-online.target
135-
After=network-online.target
136-
137-
[Service]
138-
Type=oneshot
139-
ExecStart=/var/lib/ssh-manager/ssh-manager
140-
StandardOutput=journal
141-
User=root
142-
143-
[Install]
144-
WantedBy=multi-user.target
145-
```
131+
```
132+
[Unit]
133+
Description=Central SSH Management Service for AWS Linux EC2
134+
Wants=network-online.target
135+
After=network-online.target
136+
137+
[Service]
138+
Type=oneshot
139+
ExecStart=/var/lib/ssh-manager/ssh-manager
140+
StandardOutput=journal
141+
User=root
142+
143+
[Install]
144+
WantedBy=multi-user.target
145+
```
146146

147147
- Create **systemd** timer under `/etc/systemd/system/ssh-manager.timer` with the following content:
148148

149-
```
150-
[Unit]
151-
Description=Timer for Central SSH Management Service
152-
Wants=network-online.target
153-
After=network-online.target
154-
155-
[Timer]
156-
Unit=ssh-manager.service
157-
OnBootSec=10min
158-
OnUnitInactiveSec=60min
159-
Persistent=true
160-
161-
[Install]
162-
WantedBy=multi-user.target
163-
```
149+
```
150+
[Unit]
151+
Description=Timer for Central SSH Management Service
152+
Wants=network-online.target
153+
After=network-online.target
154+
155+
[Timer]
156+
Unit=ssh-manager.service
157+
OnBootSec=10min
158+
OnUnitInactiveSec=60min
159+
Persistent=true
160+
161+
[Install]
162+
WantedBy=multi-user.target
163+
```
164164

165165
- Reload **systemd** configuration: `systemctl daemon-reload`
166166
- Enable **ssh-manager** service: `systemctl enable ssh-manager.service`
@@ -180,18 +180,18 @@ Decide what are you going to do with the users and either delete them (`userdel
180180

181181
- Delete systemd service and timer:
182182

183-
```shell
184-
systemctl stop ssh-manager.service
185-
systemctl stop ssh-manager.timer
186-
rm -f /etc/systemd/system/ssh-manager.*
187-
```
183+
```shell
184+
systemctl stop ssh-manager.service
185+
systemctl stop ssh-manager.timer
186+
rm -f /etc/systemd/system/ssh-manager.*
187+
```
188188

189189
- Delete application groups:
190190

191-
```shell
192-
groupdel ssh-manager-users
193-
groupdel ssh-manager-sudoers
194-
```
191+
```shell
192+
groupdel ssh-manager-users
193+
groupdel ssh-manager-sudoers
194+
```
195195

196196
- Remove `%ssh-manager-sudoers ALL=(ALL) NOPASSWD: ALL` entry from `/etc/sudoers` file
197197
- Delete app directory `rm -rf /var/lib/ssh-manager`

internal/app/config.go

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import (
88
"github.com/pkg/errors"
99
)
1010

11+
// Version contains current application version
12+
const Version string = "1.0.4"
13+
1114
// Config represents a remote configuration
1215
type Config struct {
1316
Users map[string]string `json:"users"`

internal/app/version.go

-4
This file was deleted.

0 commit comments

Comments
 (0)