1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

[SM-460] Isolate SecretsManager files (#2616)

Move SecretsManager files to directories called SecretsManager and add CodeOwners
This commit is contained in:
Oscar Hinton
2023-01-24 19:57:28 +01:00
committed by GitHub
parent 4041d7f009
commit 59f5285c88
122 changed files with 449 additions and 419 deletions

View File

@ -1,8 +0,0 @@
using Bit.Core.Entities;
namespace Bit.Core.SecretManagerFeatures.AccessTokens.Interfaces;
public interface ICreateAccessTokenCommand
{
Task<ApiKey> CreateAsync(ApiKey apiKey, Guid userId);
}

View File

@ -1,8 +0,0 @@
using Bit.Core.Entities;
namespace Bit.Core.SecretManagerFeatures.Projects.Interfaces;
public interface ICreateProjectCommand
{
Task<Project> CreateAsync(Project project);
}

View File

@ -1,8 +0,0 @@
using Bit.Core.Entities;
namespace Bit.Core.SecretManagerFeatures.Secrets.Interfaces;
public interface ICreateSecretCommand
{
Task<Secret> CreateAsync(Secret secret);
}

View File

@ -1,8 +0,0 @@
using Bit.Core.Entities;
namespace Bit.Core.SecretManagerFeatures.Secrets.Interfaces;
public interface IUpdateSecretCommand
{
Task<Secret> UpdateAsync(Secret secret);
}

View File

@ -1,6 +1,6 @@
using Bit.Core.Entities;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.SecretManagerFeatures.AccessPolicies.Interfaces;
namespace Bit.Core.SecretsManager.Commands.AccessPolicies.Interfaces;
public interface ICreateAccessPoliciesCommand
{

View File

@ -1,4 +1,4 @@
namespace Bit.Core.SecretManagerFeatures.AccessPolicies.Interfaces;
namespace Bit.Core.SecretsManager.Commands.AccessPolicies.Interfaces;
public interface IDeleteAccessPolicyCommand
{

View File

@ -1,6 +1,6 @@
using Bit.Core.Entities;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.SecretManagerFeatures.AccessPolicies.Interfaces;
namespace Bit.Core.SecretsManager.Commands.AccessPolicies.Interfaces;
public interface IUpdateAccessPolicyCommand
{

View File

@ -0,0 +1,8 @@
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.SecretsManager.Commands.AccessTokens.Interfaces;
public interface ICreateAccessTokenCommand
{
Task<ApiKey> CreateAsync(ApiKey apiKey, Guid userId);
}

View File

@ -0,0 +1,8 @@
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.SecretsManager.Commands.Projects.Interfaces;
public interface ICreateProjectCommand
{
Task<Project> CreateAsync(Project project);
}

View File

@ -1,6 +1,6 @@
using Bit.Core.Entities;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.SecretManagerFeatures.Projects.Interfaces;
namespace Bit.Core.SecretsManager.Commands.Projects.Interfaces;
public interface IDeleteProjectCommand
{

View File

@ -1,6 +1,6 @@
using Bit.Core.Entities;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.SecretManagerFeatures.Projects.Interfaces;
namespace Bit.Core.SecretsManager.Commands.Projects.Interfaces;
public interface IUpdateProjectCommand
{

View File

@ -0,0 +1,8 @@
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.SecretsManager.Commands.Secrets.Interfaces;
public interface ICreateSecretCommand
{
Task<Secret> CreateAsync(Secret secret);
}

View File

@ -1,6 +1,6 @@
using Bit.Core.Entities;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.SecretManagerFeatures.Secrets.Interfaces;
namespace Bit.Core.SecretsManager.Commands.Secrets.Interfaces;
public interface IDeleteSecretCommand
{

View File

@ -0,0 +1,8 @@
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.SecretsManager.Commands.Secrets.Interfaces;
public interface IUpdateSecretCommand
{
Task<Secret> UpdateAsync(Secret secret);
}

View File

@ -1,6 +1,6 @@
using Bit.Core.Entities;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.SecretManagerFeatures.ServiceAccounts.Interfaces;
namespace Bit.Core.SecretsManager.Commands.ServiceAccounts.Interfaces;
public interface ICreateServiceAccountCommand
{

View File

@ -1,6 +1,6 @@
using Bit.Core.Entities;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.SecretManagerFeatures.ServiceAccounts.Interfaces;
namespace Bit.Core.SecretsManager.Commands.ServiceAccounts.Interfaces;
public interface IUpdateServiceAccountCommand
{

View File

@ -1,7 +1,8 @@
#nullable enable
using Bit.Core.Entities;
using Bit.Core.Utilities;
namespace Bit.Core.Entities;
namespace Bit.Core.SecretsManager.Entities;
public abstract class BaseAccessPolicy
{

View File

@ -1,7 +1,8 @@
using System.ComponentModel.DataAnnotations;
using Bit.Core.Entities;
using Bit.Core.Utilities;
namespace Bit.Core.Entities;
namespace Bit.Core.SecretsManager.Entities;
public class ApiKey : ITableObject<Guid>
{

View File

@ -1,7 +1,8 @@
#nullable enable
using Bit.Core.Entities;
using Bit.Core.Utilities;
namespace Bit.Core.Entities;
namespace Bit.Core.SecretsManager.Entities;
public class Project : ITableObject<Guid>
{

View File

@ -1,7 +1,8 @@
#nullable enable
using Bit.Core.Entities;
using Bit.Core.Utilities;
namespace Bit.Core.Entities;
namespace Bit.Core.SecretsManager.Entities;
public class Secret : ITableObject<Guid>
{

View File

@ -1,7 +1,8 @@
#nullable enable
using Bit.Core.Entities;
using Bit.Core.Utilities;
namespace Bit.Core.Entities;
namespace Bit.Core.SecretsManager.Entities;
public class ServiceAccount : ITableObject<Guid>
{

View File

@ -1,6 +1,6 @@
using Bit.Core.Entities;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.Models.Data;
namespace Bit.Core.SecretsManager.Models.Data;
public class ApiKeyDetails : ApiKey
{

View File

@ -1,7 +1,7 @@
#nullable enable
using Bit.Core.Entities;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.Repositories;
namespace Bit.Core.SecretsManager.Repositories;
public interface IAccessPolicyRepository
{

View File

@ -1,7 +1,8 @@
using Bit.Core.Entities;
using Bit.Core.Models.Data;
using Bit.Core.Repositories;
using Bit.Core.SecretsManager.Entities;
using Bit.Core.SecretsManager.Models.Data;
namespace Bit.Core.Repositories;
namespace Bit.Core.SecretsManager.Repositories;
public interface IApiKeyRepository : IRepository<ApiKey, Guid>
{

View File

@ -1,7 +1,7 @@
using Bit.Core.Entities;
using Bit.Core.Enums;
using Bit.Core.Enums;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.Repositories;
namespace Bit.Core.SecretsManager.Repositories;
public interface IProjectRepository
{

View File

@ -1,6 +1,6 @@
using Bit.Core.Entities;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.Repositories;
namespace Bit.Core.SecretsManager.Repositories;
public interface ISecretRepository
{

View File

@ -1,7 +1,7 @@
using Bit.Core.Entities;
using Bit.Core.Enums;
using Bit.Core.Enums;
using Bit.Core.SecretsManager.Entities;
namespace Bit.Core.Repositories;
namespace Bit.Core.SecretsManager.Repositories;
public interface IServiceAccountRepository
{