Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🗑️ Removed secret content Azure functions and containers #87

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions SSW.Rules.AzFuncs/Domain/SecretContent.cs

This file was deleted.

11 changes: 0 additions & 11 deletions SSW.Rules.AzFuncs/Domain/User.cs

This file was deleted.

9 changes: 1 addition & 8 deletions SSW.Rules.AzFuncs/Functions/Health/HealthCheckFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,7 @@ public async Task<HttpResponseData> Run(
Discriminator = typeof(Bookmark).FullName
});

var secretContentEntity = await dbContext.SecretContents.Add(new Domain.SecretContent
{
OrganisationId = "123123",
Content = "Don't tell anyone about this",
Discriminator = typeof(Domain.SecretContent).FullName
});

if (result.IsHealthy && bookmarkEntity != null && secretContentEntity != null)
if (result.IsHealthy && bookmarkEntity != null)
{
_logger.LogWarning($"{nameof(HealthCheckFunction)} health check OK.");
}
Expand Down

This file was deleted.

71 changes: 0 additions & 71 deletions SSW.Rules.AzFuncs/Functions/User/AddUserOrganisationFunction.cs

This file was deleted.

45 changes: 0 additions & 45 deletions SSW.Rules.AzFuncs/Functions/User/GetOrganisationsFunction.cs

This file was deleted.

68 changes: 0 additions & 68 deletions SSW.Rules.AzFuncs/Functions/User/GetUserFunction.cs

This file was deleted.

2 changes: 0 additions & 2 deletions SSW.Rules.AzFuncs/Persistence/RulesDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ namespace SSW.Rules.AzFuncs.Persistence;
public class RulesDbContext : CosmosContext
{
public IRepository<Bookmark> Bookmarks { get; set; }
public IRepository<SecretContent> SecretContents { get; set; }
public IRepository<User> Users { get; set; }
babakamyljanovssw marked this conversation as resolved.
Show resolved Hide resolved
public IRepository<SyncHistory> SyncHistory { get; set; }
public IRepository<RuleHistoryCache> RuleHistoryCache { get; set; }
}
3 changes: 0 additions & 3 deletions SSW.Rules.AzFuncs/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using OidcApiAuthorization;
using SSW.Rules.AzFuncs.Domain;
using SSW.Rules.AzFuncs.Persistence;
using User = SSW.Rules.AzFuncs.Domain.User;

var configurationRoot = new ConfigurationBuilder()
.SetBasePath(Environment.CurrentDirectory)
Expand Down Expand Up @@ -40,8 +39,6 @@
.WithContainerConfig(c =>
{
c.AddContainer<Bookmark>(containerId: nameof(Bookmark), partitionKeyPath: "/id");
c.AddContainer<SecretContent>(containerId: nameof(SecretContent), partitionKeyPath: "/id");
c.AddContainer<User>(containerId: nameof(User), partitionKeyPath: "/id");
c.AddContainer<SyncHistory>(containerId: nameof(SyncHistory), partitionKeyPath: "/id");
c.AddContainer<RuleHistoryCache>(containerId: nameof(RuleHistoryCache), partitionKeyPath: "/id");
});
Expand Down
26 changes: 0 additions & 26 deletions SSW.Rules.AzFuncs/docs/Functions/Functions.http
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,3 @@ GET {{BaseApiUrl}}/GetAllBookmarkedFunction?user_id={{UserId}}
###
# Bookmark - GetBookmarkStatusFunction
GET {{BaseApiUrl}}/GetBookmarkStatusFunction?rule_guid={{RuleGuid}}&user_id={{UserId}}

###
# SecretContent - GetSecretContentFunction
GET {{BaseApiUrl}}/GetSecretContentFunction?id=cc4e043f-60e2-4f99-b9ee-b2518c3004a8
Authorization: Bearer {{Token}}

###
# User - GetUserFunction
GET {{BaseApiUrl}}/GetUserFunction?user_id={{UserId}}
Authorization: Bearer {{Token}}

###
# User - GetOrganisationsFunction
GET {{BaseApiUrl}}/GetOrganisationsFunction?user_id={{UserId}}
Authorization: Bearer {{Token}}

###
# User - AddUserOrganisationFunction
POST {{BaseApiUrl}}/AddUserOrganisationFunction
Content-Type: application/json
Authorization: Bearer {{Token}}

{
"OrganisationId": "{{OrganisationId}}",
"UserId": "{{UserId}}"
}
Loading