Skip to content

Commit

Permalink
[AC-116] Create Health Check Credentials for Instances on Startup (#216)
Browse files Browse the repository at this point in the history
Add parameter to appsettings
Add migration to create a new column to store key and secret
Update AdminConsole InitialData to create, if not exists, a vendor and an application
Update Instances synchronization to include the insert of key and secret
  • Loading branch information
jleiva-gap authored Jan 23, 2025
1 parent fef9c1a commit 24102c5
Show file tree
Hide file tree
Showing 25 changed files with 1,181 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public class AddInstanceRequest : IAddInstanceModel
public int TenantId { get; set; }
[Required]
public ExpandoObject Document { get; set; }
[Required]
public ExpandoObject ApiCredentials { get; set; }
}

public class Validator : AbstractValidator<AddInstanceRequest>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace EdFi.Ods.AdminApi.AdminConsole.Infrastructure.DataAccess.Artifacts.Admin.MsSql
{
/// <inheritdoc />
public partial class AddApiCredentialsToInstance : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ApiCredentials",
schema: "adminconsole",
table: "Instances",
type: "nvarchar(max)",
nullable: true
);
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ApiCredentials",
schema: "adminconsole",
table: "Instances"
);
}
}
}
Loading

0 comments on commit 24102c5

Please sign in to comment.