feat(gaurds): use better smartguards to verify action authorization
This commit is contained in:
@@ -21,7 +21,8 @@ import { CloudlySecretManager } from './manager.secret/classes.secretmanager.js'
|
||||
import { CloudlyServerManager } from './manager.server/servermanager.js';
|
||||
import { ExternalApiManager } from './manager.status/statusmanager.js';
|
||||
import { ImageManager } from './manager.image/classes.imagemanager.js';
|
||||
import { logger } from './cloudly.logging.js';
|
||||
import { logger } from './logger.js';
|
||||
import { CloudlyAuthManager } from './manager.auth/classes.authmanager.js';
|
||||
|
||||
/**
|
||||
* Cloudly class can be used to instantiate a cloudly server.
|
||||
@@ -48,6 +49,7 @@ export class Cloudly {
|
||||
public mongodbConnector: MongodbConnector;
|
||||
|
||||
// managers
|
||||
public authManager: CloudlyAuthManager;
|
||||
public secretManager: CloudlySecretManager;
|
||||
public clusterManager: ClusterManager;
|
||||
public coreflowManager: CloudlyCoreflowManager;
|
||||
@@ -71,7 +73,8 @@ export class Cloudly {
|
||||
this.cloudflareConnector = new CloudflareConnector(this);
|
||||
this.letsencryptConnector = new LetsencryptConnector(this);
|
||||
|
||||
// processes
|
||||
// managers
|
||||
this.authManager = new CloudlyAuthManager(this);
|
||||
this.clusterManager = new ClusterManager(this);
|
||||
this.coreflowManager = new CloudlyCoreflowManager(this);
|
||||
this.externalApiManager = new ExternalApiManager(this);
|
||||
@@ -90,6 +93,7 @@ export class Cloudly {
|
||||
await this.config.init();
|
||||
|
||||
// manageers
|
||||
await this.authManager.start();
|
||||
await this.secretManager.start();
|
||||
await this.serverManager.start();
|
||||
|
||||
|
Reference in New Issue
Block a user