Skip to content

Commit

Permalink
Remove ALL existing code related to stored sponsors
Browse files Browse the repository at this point in the history
Since we're moving to an entirely offline and manifest-based SL check, we don't need any of the complex stuff we had before. We just need a SINGLE endpoint to sign the JWT manifest sent by the gh-sponsors extension (see devlooped/gh-sponsors#8). Everything else is unnecessary now.

The functionality is reduced but simplified significantly, with a massive improvement in PII/GDPR compliance. There is no longer any direct nor indirect telemetry tracked since the user must explicitly run a command and install an extension in their machine before getting a signed manifest.

We also no longer provide a webhook for the GH apps, which will be deprecated too.

Fixes #31
  • Loading branch information
kzu committed Aug 23, 2023
1 parent 8ccacd1 commit 3b6467b
Show file tree
Hide file tree
Showing 33 changed files with 37 additions and 2,049 deletions.
42 changes: 0 additions & 42 deletions .netconfig
Original file line number Diff line number Diff line change
Expand Up @@ -63,48 +63,6 @@
sha = f08c3f28e46e28eb31e70846d65e57aa9553ce56
etag = 567444486383d032c1c5fbc538f07e860f92b1d08c66ac6ffb1db64ca539251c
weak
[file "src/App/System/QuaranTime.cs"]
url = https://github.com/devlooped/catbag/blob/main/System/QuaranTime.cs
sha = 83ae670d5c69de16dd0d3a15448bdefa2ef6cdfe
etag = 2de43ea10bb6dca91326c303fd4daf1c6493d3bc63511f3fd906c7f75117f49e
weak
[file "src/Tests/System/QuaranTime.cs"]
url = https://github.com/devlooped/catbag/blob/main/System/QuaranTime.cs
sha = 83ae670d5c69de16dd0d3a15448bdefa2ef6cdfe
etag = 2de43ea10bb6dca91326c303fd4daf1c6493d3bc63511f3fd906c7f75117f49e
weak
[file "src/Tests/System/Base62.cs"]
url = https://github.com/devlooped/catbag/blob/main/System/Base62.cs
sha = 43712304cdfff2c34ba01197cc2ccc0e16e7af08
etag = 045b9e458f11f846ae9a3979b8122c68173405fb5451083d4993f94004e60e76
weak
[file "src/App/System/Base62.cs"]
url = https://github.com/devlooped/catbag/blob/main/System/Base62.cs
sha = 43712304cdfff2c34ba01197cc2ccc0e16e7af08
etag = 045b9e458f11f846ae9a3979b8122c68173405fb5451083d4993f94004e60e76
weak
[file "src/Package/Properties/."]
url = https://github.com/devlooped/SponsorLink/tree/main/loc
[file "src/Package/Properties/Resources.es.resx"]
url = https://github.com/devlooped/SponsorLink/blob/main/loc/Resources.es.resx
sha = da76fbaadfb524ea6c58715f60b4d9c52e152977
etag = 2e8130a9a1799eaf05691ed68719146097797abbbb6214e12ba65917c36c376c
weak
[file "src/Package/Properties/Resources.resx"]
url = https://github.com/devlooped/SponsorLink/blob/main/loc/Resources.resx
sha = da76fbaadfb524ea6c58715f60b4d9c52e152977
etag = 9c3302f054c55692be6fbae25f0f1af9b96803a40144dcef64885a9da7cb562c
weak
[file "src/SponsorLink/System/Base62.cs"]
url = https://github.com/devlooped/catbag/blob/main/System/Base62.cs
sha = 43712304cdfff2c34ba01197cc2ccc0e16e7af08
etag = 045b9e458f11f846ae9a3979b8122c68173405fb5451083d4993f94004e60e76
weak
[file "src/Package/System/Base62.cs"]
url = https://github.com/devlooped/catbag/blob/main/System/Base62.cs
sha = 43712304cdfff2c34ba01197cc2ccc0e16e7af08
etag = 045b9e458f11f846ae9a3979b8122c68173405fb5451083d4993f94004e60e76
weak
[file ".github/workflows/changelog.config"]
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.config
sha = 055a8b7c94b74ae139cce919d60b83976d2a9942
Expand Down
6 changes: 0 additions & 6 deletions SponsorLink.sln
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
src\readme.md = src\readme.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SponsorLink", "src\SponsorLink\SponsorLink.csproj", "{C04E6EF3-CD66-4E4C-8A55-77B31DFBDF88}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Package", "src\Package\Package.csproj", "{E2813343-FDF5-4870-9DA5-35A1A3EB2CA6}"
EndProject
Global
Expand All @@ -38,10 +36,6 @@ Global
{638E2879-1321-495B-828B-785B6B5E9921}.Debug|Any CPU.Build.0 = Debug|Any CPU
{638E2879-1321-495B-828B-785B6B5E9921}.Release|Any CPU.ActiveCfg = Release|Any CPU
{638E2879-1321-495B-828B-785B6B5E9921}.Release|Any CPU.Build.0 = Release|Any CPU
{C04E6EF3-CD66-4E4C-8A55-77B31DFBDF88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C04E6EF3-CD66-4E4C-8A55-77B31DFBDF88}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C04E6EF3-CD66-4E4C-8A55-77B31DFBDF88}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C04E6EF3-CD66-4E4C-8A55-77B31DFBDF88}.Release|Any CPU.Build.0 = Release|Any CPU
{E2813343-FDF5-4870-9DA5-35A1A3EB2CA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E2813343-FDF5-4870-9DA5-35A1A3EB2CA6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E2813343-FDF5-4870-9DA5-35A1A3EB2CA6}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
20 changes: 14 additions & 6 deletions src/App/App.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
Expand All @@ -9,6 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.2.0" />
<PackageReference Include="Azure.Core" Version="1.34.0" />
<PackageReference Include="Azure.Monitor.Query" Version="1.2.0" />
<PackageReference Include="Microsoft.Azure.EventGrid" Version="3.2.1" />
Expand All @@ -18,18 +19,25 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.2.0" />
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="6.32.1" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.32.1" />
<PackageReference Include="Microsoft.IdentityModel.Protocols" Version="6.32.1" />
<PackageReference Include="ThisAssembly.Project" Version="1.4.0" PrivateAssets="All" />
<PackageReference Include="Devlooped.Extensions.DependencyInjection.Attributed" Version="1.3.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SponsorLink\SponsorLink.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="host.json" CopyToOutputDirectory="PreserveNewest" />
<None Update="local.settings.json" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="Never" />
</ItemGroup>

<ItemGroup>
<FunctionsPreservedDependencies Include="Microsoft.IdentityModel.JsonWebTokens.dll" />
<FunctionsPreservedDependencies Include="Microsoft.IdentityModel.Logging.dll" />
<FunctionsPreservedDependencies Include="Microsoft.IdentityModel.Protocols.dll" />
<FunctionsPreservedDependencies Include="Microsoft.IdentityModel.Protocols.OpenIdConnect.dll" />
<FunctionsPreservedDependencies Include="Microsoft.IdentityModel.Tokens.dll" />
<FunctionsPreservedDependencies Include="System.IdentityModel.Tokens.Jwt.dll" />
</ItemGroup>

</Project>
37 changes: 0 additions & 37 deletions src/App/DependencyStartup.cs

This file was deleted.

Loading

0 comments on commit 3b6467b

Please sign in to comment.