Skip to content

Commit 2bc03b8

Browse files
committed
fix: add autogroup:member checks in ssh policies
1 parent 54fa423 commit 2bc03b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/domain/acl_ssh_policy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (a ACLPolicy) expandSSHSrcAlias(m *Machine, alias string, dstUser *User) []
8585
return []string{}
8686
}
8787

88-
if alias == AutoGroupMembers {
88+
if alias == AutoGroupMember || alias == AutoGroupMembers {
8989
return m.IPs()
9090
}
9191

@@ -100,7 +100,7 @@ func (a ACLPolicy) expandSSHSrcAlias(m *Machine, alias string, dstUser *User) []
100100
return []string{}
101101
}
102102

103-
if alias == AutoGroupMembers && !m.HasTags() {
103+
if (alias == AutoGroupMember || alias == AutoGroupMembers) && !m.HasTags() {
104104
return m.IPs()
105105
}
106106

0 commit comments

Comments
 (0)