Skip to content

Commit 22990cc

Browse files
authored
Merge pull request #1 from ST2Projects/tk/add-extentions-config
Tk/add extentions config
2 parents 7663aa1 + 1951718 commit 22990cc

File tree

6 files changed

+17
-5
lines changed

6 files changed

+17
-5
lines changed

.gitignore

100644100755
File mode changed.

LICENSE

100644100755
File mode changed.

README.md

100644100755
File mode changed.

go.mod

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/st2projects/ssh-sentinel-core
22

3-
go 1.18
3+
go 1.22

model/key_sign_request.go

100644100755
Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
package model
22

33
type KeySignRequest struct {
4-
Username string `json:"username"`
5-
APIKey string `json:"api_key"`
6-
Principals []string `json:"principals"`
7-
Key string `json:"key"`
4+
Username string `json:"username"`
5+
APIKey string `json:"api_key"`
6+
Principals []string `json:"principals"`
7+
Key string `json:"key"`
8+
Extensions []Extension `json:"extensions"`
89
}
10+
11+
type Extension string
12+
13+
const (
14+
no_touch_required Extension = "no-touch-required"
15+
permit_x11_forwarding Extension = "permit-x11-forwarding"
16+
permit_agent_forwarding Extension = "permit-agent_forwarding"
17+
permit_port_forwarding Extension = "permit-port-forwarding"
18+
permit_pty Extension = "permit-pty"
19+
permit_user_rc Extension = "permit-user-rc"
20+
)

model/key_sign_response.go

100644100755
File mode changed.

0 commit comments

Comments
 (0)