You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ HTTP API directly.
31
31
### Changes
32
32
33
33
- Expiring or deleting a non-existent pre-auth key now returns an error instead of silently succeeding [#3324](https://github.com/juanfont/headscale/pull/3324)
34
+
- SSH policy validation errors now prefix their messages with `ssh:` so failures like `ssh: users must be specified` make it clear that the problem comes from an SSH rule violation [#3343](https://github.com/juanfont/headscale/pull/3343)
Copy file name to clipboardExpand all lines: hscontrol/policy/v2/types.go
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -41,17 +41,17 @@ var ErrUndefinedTagReference = errors.New("references undefined tag")
41
41
var (
42
42
ErrSSHTagSourceToUserDest=errors.New("tags in SSH source cannot access user-owned devices")
43
43
ErrSSHUserDestRequiresSameUser=errors.New("user destination requires source to contain only that same user")
44
-
ErrSSHAutogroupSelfRequiresUserSource=errors.New("autogroup:self destination requires source to contain only users or groups, not tags or autogroup:tagged")
44
+
ErrSSHAutogroupSelfRequiresUserSource=errors.New("ssh: autogroup:self destination requires source to contain only users or groups, not tags or autogroup:tagged")
45
45
ErrSSHTagSourceToAutogroupMember=errors.New("tags in SSH source cannot access autogroup:member (user-owned devices)")
46
46
ErrSSHWildcardDestination=errors.New("wildcard (*) is not supported as SSH destination")
47
47
ErrSSHCheckPeriodAboveMax=errors.New("is above the max (168h)")
48
48
ErrSSHCheckPeriodNegative=errors.New("must be a positive duration")
49
-
ErrSSHCheckPeriodOnNonCheck=errors.New("checkPeriod is only valid with action \"check\"")
49
+
ErrSSHCheckPeriodOnNonCheck=errors.New("ssh: checkPeriod is only valid with action \"check\"")
50
50
ErrInvalidLocalpart=errors.New("invalid localpart format, must be localpart:*@<domain>")
51
-
ErrSSHUsersMustBeSpecified=errors.New("users must be specified")
51
+
ErrSSHUsersMustBeSpecified=errors.New("ssh: users must be specified")
52
52
ErrSSHUserInvalid=errors.New("is not valid")
53
-
ErrSSHAcceptEnvEmpty=errors.New("acceptEnv values cannot be empty")
54
-
ErrSSHActionMustBeSpecified=errors.New("action must be specified")
53
+
ErrSSHAcceptEnvEmpty=errors.New("ssh: acceptEnv values cannot be empty")
54
+
ErrSSHActionMustBeSpecified=errors.New("ssh: action must be specified")
55
55
ErrSSHActionInvalid=errors.New("is not a valid action")
0 commit comments