mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-31 04:57:45 +09:00 
			
		
		
		
	Make more granular SSH tests for both Policies (#2555)
	
		
			
	
		
	
	
		
	
		
			Some checks are pending
		
		
	
	
		
			
				
	
				Build / build-nix (push) Waiting to run
				
			
		
			
				
	
				Build / build-cross (GOARCH=386   GOOS=linux) (push) Waiting to run
				
			
		
			
				
	
				Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Waiting to run
				
			
		
			
				
	
				Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Waiting to run
				
			
		
			
				
	
				Build / build-cross (GOARCH=arm   GOOS=linux GOARM=5) (push) Waiting to run
				
			
		
			
				
	
				Build / build-cross (GOARCH=arm   GOOS=linux GOARM=6) (push) Waiting to run
				
			
		
			
				
	
				Build / build-cross (GOARCH=arm   GOOS=linux GOARM=7) (push) Waiting to run
				
			
		
			
				
	
				Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Waiting to run
				
			
		
			
				
	
				Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Waiting to run
				
			
		
			
				
	
				Tests / test (push) Waiting to run
				
			
		
		
	
	
				
					
				
			
		
			Some checks are pending
		
		
	
	Build / build-nix (push) Waiting to run
				
			Build / build-cross (GOARCH=386   GOOS=linux) (push) Waiting to run
				
			Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Waiting to run
				
			Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Waiting to run
				
			Build / build-cross (GOARCH=arm   GOOS=linux GOARM=5) (push) Waiting to run
				
			Build / build-cross (GOARCH=arm   GOOS=linux GOARM=6) (push) Waiting to run
				
			Build / build-cross (GOARCH=arm   GOOS=linux GOARM=7) (push) Waiting to run
				
			Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Waiting to run
				
			Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Waiting to run
				
			Tests / test (push) Waiting to run
				
			* policy/v1: dont consider empty if ssh has rules Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * policy/v2: replace time.Duration with model.Duration Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * policy/v2: add autogroup and ssh validation Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * policy/v2: replace time.Duration with model.Duration Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * policy: replace old ssh tests with more granular test Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * policy: skip v1 tests expected to fail (missing error handling) Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * policy: skip v1 group tests, old bugs wont be fixed Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * integration: user valid policy for ssh Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * Changelog, add ssh section Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> * nix update Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com> --------- Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
		| @@ -172,7 +172,7 @@ func TestSSHMultipleUsersAllToAll(t *testing.T) { | ||||
| 				{ | ||||
| 					Action:       "accept", | ||||
| 					Sources:      []string{"group:integration-test"}, | ||||
| 					Destinations: []string{"group:integration-test"}, | ||||
| 					Destinations: []string{"user1@", "user2@"}, | ||||
| 					Users:        []string{"ssh-it-user"}, | ||||
| 				}, | ||||
| 			}, | ||||
| @@ -267,7 +267,7 @@ func TestSSHIsBlockedInACL(t *testing.T) { | ||||
| 				{ | ||||
| 					Action:       "accept", | ||||
| 					Sources:      []string{"group:integration-test"}, | ||||
| 					Destinations: []string{"group:integration-test"}, | ||||
| 					Destinations: []string{"user1@"}, | ||||
| 					Users:        []string{"ssh-it-user"}, | ||||
| 				}, | ||||
| 			}, | ||||
| @@ -317,13 +317,13 @@ func TestSSHUserOnlyIsolation(t *testing.T) { | ||||
| 				{ | ||||
| 					Action:       "accept", | ||||
| 					Sources:      []string{"group:ssh1"}, | ||||
| 					Destinations: []string{"group:ssh1"}, | ||||
| 					Destinations: []string{"user1@"}, | ||||
| 					Users:        []string{"ssh-it-user"}, | ||||
| 				}, | ||||
| 				{ | ||||
| 					Action:       "accept", | ||||
| 					Sources:      []string{"group:ssh2"}, | ||||
| 					Destinations: []string{"group:ssh2"}, | ||||
| 					Destinations: []string{"user2@"}, | ||||
| 					Users:        []string{"ssh-it-user"}, | ||||
| 				}, | ||||
| 			}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user