mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	Don't hash time.Time values in return data maps, they may be useful for reconciling values and are not generally secret
This commit is contained in:
		| @@ -143,7 +143,7 @@ func TestHash(t *testing.T) { | ||||
|  | ||||
| 					// Responses can contain time values, so test that with | ||||
| 					// a known fixed value. | ||||
| 					"bar": time.Unix(1494264707, 0), | ||||
| 					"bar": now, | ||||
| 				}, | ||||
| 				WrapInfo: &wrapping.ResponseWrapInfo{ | ||||
| 					TTL:             60, | ||||
| @@ -155,7 +155,7 @@ func TestHash(t *testing.T) { | ||||
| 			&logical.Response{ | ||||
| 				Data: map[string]interface{}{ | ||||
| 					"foo": "hmac-sha256:f9320baf0249169e73850cd6156ded0106e2bb6ad8cab01b7bbbebe6d1065317", | ||||
| 					"bar": "hmac-sha256:b09b815a7d1c3bbcf702f9c9a50ef6408d0935bea0154383a128ca8743eb06fc", | ||||
| 					"bar": now.Format(time.RFC3339Nano), | ||||
| 				}, | ||||
| 				WrapInfo: &wrapping.ResponseWrapInfo{ | ||||
| 					TTL:             60, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jeff Mitchell
					Jeff Mitchell