public async Task StartSecretMounts() { ISecretBackend backend = new DummyBackend(); // Reserve the sys backend mount -- this will actually be intercepted // and handled by the Sys Controller _secretMounts.Set("sys", backend); _secretReservedMounts.Set("sys", backend); // Reserve the cubbyhole mount -- TODO: for now we just use a plain old // Generic secret but will eventually correct this backend = new GenericSecretBackend(new StorageWrapper(Storage, "sys-mounts/cubbyhole")); _secretMounts.Set("cubbyhole", backend); _secretReservedMounts.Set("cubbyhole", backend); _secretMounts.Set("secret", new GenericSecretBackend(new StorageWrapper(Storage, "secret-mounts/secret"))); // _secretMounts.Set("alt-secret1", new GenericSecretBackend( // new StorageWrapper(Storage, "secret-mounts/alt-secret1"))); // _secretMounts.Set("alt/secret/second", new GenericSecretBackend( // new StorageWrapper(Storage, "secret-mounts/alt/secret/second"))); await Task.CompletedTask; }
public Controller() { dummyBackend = new DummyBackend(); }