Skip to content
This repository was archived by the owner on Oct 2, 2022. It is now read-only.

Commit 1eb0daf

Browse files
author
Janos Pasztor
committed
0.9.6: Server ready message
This release adds a message when the authentication server is ready.
1 parent a940ffd commit 1eb0daf

5 files changed

Lines changed: 23 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.9.6: Server ready message
4+
5+
This release adds a message when the authentication server is ready.
6+
37
## 0.9.5: Direct metrics support
48

59
This release adds metrics support directly in the auth library.

codes.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ const EAuthFailed = "AUTH_FAILED"
1616

1717
// The user has provided the correct credentials and the authentication is accepted.
1818
const MAuthSuccessful = "AUTH_SUCCESSFUL"
19+
20+
// The ContainerSSH authentication server is now available.
21+
const MAuthServerAvailable = "AUTH_AVAILABLE"

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ module github.com/containerssh/auth
33
go 1.14
44

55
require (
6-
github.com/containerssh/geoip v0.9.3 // indirect
7-
github.com/containerssh/http v0.9.7
6+
github.com/containerssh/geoip v0.9.4 // indirect
7+
github.com/containerssh/http v0.9.9
88
github.com/containerssh/log v0.9.13
9-
github.com/containerssh/metrics v0.9.6
10-
github.com/containerssh/service v0.9.2
9+
github.com/containerssh/metrics v0.9.8
10+
github.com/containerssh/service v0.9.3
1111
github.com/stretchr/testify v1.7.0
1212
)

go.sum

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
github.com/containerssh/geoip v0.9.3 h1:RDj46uxB3Ew7qoTHCUClBDkqULRZJOLxYf/VqPgEuK8=
22
github.com/containerssh/geoip v0.9.3/go.mod h1:8fyg4eUrKKY0FDyS7GofI6OO7UXDoG1icRtVAHb510k=
3+
github.com/containerssh/geoip v0.9.4 h1:ugkbESJpitdObbSHdYNQfpoFJOlvxwNCX2ZHHnlVJzA=
4+
github.com/containerssh/geoip v0.9.4/go.mod h1:JxyH+hKj7LfoXWmOMR5lQVrNJCpy42N3GNWSPEguq24=
35
github.com/containerssh/http v0.9.4/go.mod h1:KTBEbXRSdllIGOb+O6AURBCG+9vCEyo6AI+JCrI94Cw=
46
github.com/containerssh/http v0.9.7 h1:uAJa1ftiTh53awvnc0wb7zQAv/AyWpKClY/DcyUWAsk=
57
github.com/containerssh/http v0.9.7/go.mod h1:iSFsy8J/NCZNQfx6Eh4VeNnFnUamByVRlerm7L2s7S8=
8+
github.com/containerssh/http v0.9.9 h1:28F8tw0pcwVUS3ClpvsaTVyCKvARLP8R4zqdbVQMrjo=
9+
github.com/containerssh/http v0.9.9/go.mod h1:138EGp1m2eSk+MIPD837NAVMNzExedP5VvEnWl5B2gk=
610
github.com/containerssh/log v0.9.2/go.mod h1:05pgNm7IgFKt+qbZiUhtuJw2B4j3ynn2vSv5j2JA7hA=
711
github.com/containerssh/log v0.9.7/go.mod h1:NBMzkhOLZ4z45ShSBKQ/Ij6Hqqg15DgOKy6HlSITx0s=
812
github.com/containerssh/log v0.9.10/go.mod h1:NBMzkhOLZ4z45ShSBKQ/Ij6Hqqg15DgOKy6HlSITx0s=
@@ -14,9 +18,13 @@ github.com/containerssh/log v0.9.13 h1:jBSrFaxZNGwkjHU6y/efYI8lyG8KIFR5aOIeOnNzq
1418
github.com/containerssh/log v0.9.13/go.mod h1:uVuUPoZsJYi2KoV9+lgPeB/gWuXeUTD3AoVxc4y+tKY=
1519
github.com/containerssh/metrics v0.9.6 h1:m4Q6IM8zZsghYCV978ZMqh9TQ6dkLWHDyYA5nHU2kpk=
1620
github.com/containerssh/metrics v0.9.6/go.mod h1:yClAiBuFrIrmxQLyU/AjR1XNbqPIHg+m/Hb2EZrVtRE=
21+
github.com/containerssh/metrics v0.9.8 h1:dJNb21Nd0IJxE1bEOevOrnwSinaMLuiZATwix0v4GxI=
22+
github.com/containerssh/metrics v0.9.8/go.mod h1:+CIKiJ+XxdVUcnNwe2noB15YM4VR/hp3zQ4/vE1dHuI=
1723
github.com/containerssh/service v0.9.0/go.mod h1:otAKYF1MWy2eB0K7Sk7YQIECQMTHR3yikbyS1UstGpY=
1824
github.com/containerssh/service v0.9.2 h1:+EZ7s7sxSme+IosYBR24oNhVlPTz3GJTXBZ0HaSD9rU=
1925
github.com/containerssh/service v0.9.2/go.mod h1:nbA2I+GL0vU7ls0JEQKI+QOJfbUjlIDmmUSQqx/G7ro=
26+
github.com/containerssh/service v0.9.3 h1:mYpvZ9zxUrKL8OpBen86heXfGtdUGdtfZ3Y7P605zvQ=
27+
github.com/containerssh/service v0.9.3/go.mod h1:Yeq3hwfM6js9TfpkrQAQhv5IRfurrGEkM+AbFEC9KCE=
2028
github.com/containerssh/structutils v0.9.0 h1:pz4xl5ZrPnpdSx7B/ru8Fj3oU3vOtx1jprIuSkm5s7o=
2129
github.com/containerssh/structutils v0.9.0/go.mod h1:zirdwNXan3kuTpsJp9Gl3W6VQz0fexqMySqxmfviSjw=
2230
github.com/creasty/defaults v1.5.1 h1:j8WexcS3d/t4ZmllX4GEkl4wIB/trOr035ajcLHCISM=
@@ -60,6 +68,7 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
6068
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
6169
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
6270
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
71+
golang.org/x/sys v0.0.0-20191224085550-c709ea063b76 h1:Dho5nD6R3PcW2SH1or8vS0dszDaXRxIw55lBX7XiE5g=
6372
golang.org/x/sys v0.0.0-20191224085550-c709ea063b76/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
6473
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f h1:+Nyd8tzPX9R7BWHguqsrbFdRx3WQ/1ib8I44HXV5yTA=
6574
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=

server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ func NewServer(
1717
configuration,
1818
NewHandler(h, logger),
1919
logger,
20+
func(url string) {
21+
logger.Info(log.NewMessage(MAuthServerAvailable, "The authentication server is now available at %s", url))
22+
},
2023
)
2124
}

0 commit comments

Comments
 (0)