From a04804077c35748edd915577ed2071c92d475907 Mon Sep 17 00:00:00 2001 From: Noe Date: Wed, 6 Dec 2023 16:35:35 +0100 Subject: [PATCH] first commit --- csharp/App/Backend/DataTypes/Methods/ExoCmd.cs | 2 ++ csharp/App/Backend/Database/Db.cs | 1 + csharp/App/Backend/Program.cs | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/csharp/App/Backend/DataTypes/Methods/ExoCmd.cs b/csharp/App/Backend/DataTypes/Methods/ExoCmd.cs index c03010eed..d6fe2b8a4 100644 --- a/csharp/App/Backend/DataTypes/Methods/ExoCmd.cs +++ b/csharp/App/Backend/DataTypes/Methods/ExoCmd.cs @@ -166,6 +166,8 @@ public static class ExoCmd public static async Task RevokeReadKey(this Installation installation) { + //Check exoscale documentation https://openapi-v2.exoscale.com/topic/topic-api-request-signature + var url = $"https://api-ch-dk-2.exoscale.com/v2/access-key/{installation.S3Key}"; var method = $"access-key/{installation.S3Key}"; diff --git a/csharp/App/Backend/Database/Db.cs b/csharp/App/Backend/Database/Db.cs index 91f765f5d..ba94f4bb3 100644 --- a/csharp/App/Backend/Database/Db.cs +++ b/csharp/App/Backend/Database/Db.cs @@ -181,6 +181,7 @@ public static partial class Db .ToList(); const String provider = "exo.io"; + Console.WriteLine("-----------------------UPDATED READ KEYS-------------------------------------------------------------------"); foreach (var region in regions) { diff --git a/csharp/App/Backend/Program.cs b/csharp/App/Backend/Program.cs index 5350fe411..a4e8b22ab 100644 --- a/csharp/App/Backend/Program.cs +++ b/csharp/App/Backend/Program.cs @@ -1,3 +1,4 @@ +using System.Net.Http.Headers; using System.Net.WebSockets; using System.Text; using System.Text.Json; @@ -5,6 +6,7 @@ using System.Threading.Channels; using Hellang.Middleware.ProblemDetails; using InnovEnergy.App.Backend.Database; using InnovEnergy.App.Backend.Websockets; +using InnovEnergy.Lib.S3Utils.DataTypes; using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.Mvc; using Microsoft.OpenApi.Models; @@ -18,7 +20,6 @@ public static class Program { public static void Main(String[] args) { - //Db.CreateFakeRelations(); Watchdog.NotifyReady(); Db.Init(); var builder = WebApplication.CreateBuilder(args);