mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	 f8370d6d11
			
		
	
	f8370d6d11
	
	
	
		
			
			* do not swallow ControlGroupErrors when viewing or editing kvv2 secrets * test kv v2 control group workflow * do not manually clearModelCache when logging out since this already happens when leaving the logout route * remove pauseTest * update comments * wip - looking into why restricted user can see the control group protected secret after it has already been unwrapped once * strip version from query params so we can unwrap a secret after it is authorized * use attachCapabilities instead of lazyCapabilities to ensure models are cleaned up properly * remove comment * make ControlGroupError extend AdapterError * fix broken redirect_to test * one day i will remember to remove my debugger statements; today is not that day * no need to check for a ControlGroupError since it extends an AdapterError * see if using EmberError instead of AdapterError fixes the browserstack tests * Revert "see if using EmberError instead of AdapterError fixes the browserstack tests" This reverts commit 14ddd67cacbf1ccecb8cc2d1f59a2c273866da72.
		
			
				
	
	
		
			17 lines
		
	
	
		
			473 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			473 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import DS from 'ember-data';
 | |
| 
 | |
| export default class ControlGroupError extends DS.AdapterError {
 | |
|   constructor(wrapInfo) {
 | |
|     let { accessor, creation_path, creation_time, token, ttl } = wrapInfo;
 | |
|     super();
 | |
|     this.message = 'Control Group encountered';
 | |
| 
 | |
|     // add items from the wrapInfo object to the error
 | |
|     this.token = token;
 | |
|     this.accessor = accessor;
 | |
|     this.creation_path = creation_path;
 | |
|     this.creation_time = creation_time;
 | |
|     this.ttl = ttl;
 | |
|   }
 | |
| }
 |