From c438ee90e3be4e5e01ae3d045d6b841a03bd46eb Mon Sep 17 00:00:00 2001 From: vnugent Date: Sun, 7 Jan 2024 20:39:18 -0500 Subject: losts of package updates & permissions --- LICENSE | 2 +- .../src/ContextExtensions.cs | 2 +- .../NVault.Crypto.Secp256k1/src/IRandomSource.cs | 2 +- .../NVault.Crypto.Secp256k1/src/LibSecp256k1.cs | 2 +- .../src/NVault.Crypto.Secp256k1.csproj | 6 +- .../src/Secp256HashFuncState.cs | 2 +- .../src/Secp256k1Context.cs | 2 +- .../src/Secp256k1SecretKey.cs | 2 +- .../src/UnmanagedRandomSource.cs | 2 +- .../src/IClientAccessScope.cs | 2 +- .../NVault.VaultExtensions/src/IKvVaultStore.cs | 2 +- .../src/IVaultClientScope.cs | 2 +- .../src/IVaultKvClientScope.cs | 2 +- .../NVault.VaultExtensions/src/KvVaultStorage.cs | 2 +- .../src/NVault.VaultExtensions.csproj | 4 +- .../src/VaultClientExtensions.cs | 2 +- .../NVault.VaultExtensions/src/VaultUserScope.cs | 2 +- back-end/plugins/nvault/src/Base64KeyEncoder.cs | 2 +- back-end/plugins/nvault/src/EncryptionResult.cs | 2 +- back-end/plugins/nvault/src/Endpoints/Endpoint.cs | 18 +- .../plugins/nvault/src/INostrCryptoProvider.cs | 2 +- back-end/plugins/nvault/src/INostrKeyEncoder.cs | 2 +- back-end/plugins/nvault/src/INostrOperations.cs | 2 +- back-end/plugins/nvault/src/INostrVault.cs | 2 +- .../plugins/nvault/src/ManagedCryptoprovider.cs | 2 +- back-end/plugins/nvault/src/ManagedVaultClient.cs | 2 +- back-end/plugins/nvault/src/Model/NostrContext.cs | 2 +- back-end/plugins/nvault/src/Model/NostrEvent.cs | 2 +- back-end/plugins/nvault/src/Model/NostrKeyMeta.cs | 2 +- .../plugins/nvault/src/Model/NostrKeyMetaStore.cs | 2 +- back-end/plugins/nvault/src/Model/NostrRelay.cs | 2 +- .../plugins/nvault/src/Model/NostrRelayFlags.cs | 2 +- .../plugins/nvault/src/Model/NostrRelayStore.cs | 2 +- back-end/plugins/nvault/src/NVault.csproj | 16 +- .../plugins/nvault/src/NativeSecp256k1Library.cs | 2 +- back-end/plugins/nvault/src/NostrEntry.cs | 2 +- back-end/plugins/nvault/src/NostrMessageKind.cs | 2 +- back-end/plugins/nvault/src/NostrOpProvider.cs | 2 +- extension/src/entries/background/main.ts | 6 +- extension/src/entries/background/script.js | 2 +- extension/src/entries/background/serviceWorker.js | 2 +- .../src/entries/contentScript/auth-popup.html | 10 + .../primary/components/PromptPopup.vue | 75 +++-- .../src/entries/contentScript/primary/main.js | 5 +- .../src/entries/contentScript/renderContent.js | 2 +- extension/src/entries/contentScript/util.ts | 38 +-- extension/src/entries/nostr-provider.js | 2 +- extension/src/entries/options/App.vue | 26 +- .../src/entries/options/components/AutoRules.vue | 119 +++++++ .../entries/options/components/EvHistoryTable.vue | 84 +++++ .../entries/options/components/EventHistory.vue | 132 ++++++++ extension/src/entries/options/main.js | 9 +- .../src/entries/popup/Components/PageContent.vue | 21 +- extension/src/entries/popup/main.js | 5 +- extension/src/entries/store/features.ts | 8 +- extension/src/entries/store/identity.ts | 2 +- extension/src/entries/store/index.ts | 3 +- extension/src/entries/store/mfaconfig.ts | 2 +- extension/src/entries/store/permissions.ts | 105 ++++++ extension/src/features/framework/index.ts | 2 +- extension/src/features/history.ts | 2 +- extension/src/features/identity-api.ts | 2 +- extension/src/features/index.ts | 7 +- extension/src/features/mfa-api.ts | 2 +- extension/src/features/nip07allow-api.ts | 2 +- extension/src/features/nostr-api.ts | 2 +- extension/src/features/permissions.ts | 371 ++++++++++++++++++--- extension/src/features/pki-api.ts | 2 +- extension/src/features/server-api/endpoints.ts | 2 +- extension/src/features/server-api/index.ts | 2 +- extension/src/features/settings.ts | 2 +- extension/src/features/tagfilter-api.ts | 2 +- extension/src/features/types.ts | 2 +- extension/src/features/util.ts | 10 +- extension/src/manifest.js | 2 +- extension/vite.config.js | 3 + 76 files changed, 978 insertions(+), 209 deletions(-) create mode 100644 extension/src/entries/contentScript/auth-popup.html create mode 100644 extension/src/entries/options/components/AutoRules.vue create mode 100644 extension/src/entries/options/components/EvHistoryTable.vue create mode 100644 extension/src/entries/options/components/EventHistory.vue create mode 100644 extension/src/entries/store/permissions.ts diff --git a/LICENSE b/LICENSE index a169586..6db2c01 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2023 Vaughn Nugent +Copyright (C) 2024 Vaughn Nugent Contact information Name: Vaughn Nugent diff --git a/back-end/libs/NVault.Crypto.Secp256k1/src/ContextExtensions.cs b/back-end/libs/NVault.Crypto.Secp256k1/src/ContextExtensions.cs index 556bba7..bb014df 100644 --- a/back-end/libs/NVault.Crypto.Secp256k1/src/ContextExtensions.cs +++ b/back-end/libs/NVault.Crypto.Secp256k1/src/ContextExtensions.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.Crypto.Secp256k1/src/IRandomSource.cs b/back-end/libs/NVault.Crypto.Secp256k1/src/IRandomSource.cs index 542fc9c..4e1861d 100644 --- a/back-end/libs/NVault.Crypto.Secp256k1/src/IRandomSource.cs +++ b/back-end/libs/NVault.Crypto.Secp256k1/src/IRandomSource.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.Crypto.Secp256k1/src/LibSecp256k1.cs b/back-end/libs/NVault.Crypto.Secp256k1/src/LibSecp256k1.cs index 907eaa4..8dda269 100644 --- a/back-end/libs/NVault.Crypto.Secp256k1/src/LibSecp256k1.cs +++ b/back-end/libs/NVault.Crypto.Secp256k1/src/LibSecp256k1.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.Crypto.Secp256k1/src/NVault.Crypto.Secp256k1.csproj b/back-end/libs/NVault.Crypto.Secp256k1/src/NVault.Crypto.Secp256k1.csproj index 59ff06e..5014d89 100644 --- a/back-end/libs/NVault.Crypto.Secp256k1/src/NVault.Crypto.Secp256k1.csproj +++ b/back-end/libs/NVault.Crypto.Secp256k1/src/NVault.Crypto.Secp256k1.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable true README.md @@ -20,8 +20,8 @@ - - + + diff --git a/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256HashFuncState.cs b/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256HashFuncState.cs index 4ee745c..c82321c 100644 --- a/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256HashFuncState.cs +++ b/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256HashFuncState.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256k1Context.cs b/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256k1Context.cs index f0a795a..dfb3ff8 100644 --- a/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256k1Context.cs +++ b/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256k1Context.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256k1SecretKey.cs b/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256k1SecretKey.cs index 7224720..35734ae 100644 --- a/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256k1SecretKey.cs +++ b/back-end/libs/NVault.Crypto.Secp256k1/src/Secp256k1SecretKey.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.Crypto.Secp256k1/src/UnmanagedRandomSource.cs b/back-end/libs/NVault.Crypto.Secp256k1/src/UnmanagedRandomSource.cs index d6ff5aa..360de21 100644 --- a/back-end/libs/NVault.Crypto.Secp256k1/src/UnmanagedRandomSource.cs +++ b/back-end/libs/NVault.Crypto.Secp256k1/src/UnmanagedRandomSource.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.VaultExtensions/src/IClientAccessScope.cs b/back-end/libs/NVault.VaultExtensions/src/IClientAccessScope.cs index 7a83fd7..c79f75e 100644 --- a/back-end/libs/NVault.VaultExtensions/src/IClientAccessScope.cs +++ b/back-end/libs/NVault.VaultExtensions/src/IClientAccessScope.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.VaultExtensions/src/IKvVaultStore.cs b/back-end/libs/NVault.VaultExtensions/src/IKvVaultStore.cs index 261bd7c..037fe6c 100644 --- a/back-end/libs/NVault.VaultExtensions/src/IKvVaultStore.cs +++ b/back-end/libs/NVault.VaultExtensions/src/IKvVaultStore.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.VaultExtensions/src/IVaultClientScope.cs b/back-end/libs/NVault.VaultExtensions/src/IVaultClientScope.cs index 873a115..d53bc4a 100644 --- a/back-end/libs/NVault.VaultExtensions/src/IVaultClientScope.cs +++ b/back-end/libs/NVault.VaultExtensions/src/IVaultClientScope.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.VaultExtensions/src/IVaultKvClientScope.cs b/back-end/libs/NVault.VaultExtensions/src/IVaultKvClientScope.cs index 951f5e2..f763473 100644 --- a/back-end/libs/NVault.VaultExtensions/src/IVaultKvClientScope.cs +++ b/back-end/libs/NVault.VaultExtensions/src/IVaultKvClientScope.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.VaultExtensions/src/KvVaultStorage.cs b/back-end/libs/NVault.VaultExtensions/src/KvVaultStorage.cs index b679404..8a2b9b6 100644 --- a/back-end/libs/NVault.VaultExtensions/src/KvVaultStorage.cs +++ b/back-end/libs/NVault.VaultExtensions/src/KvVaultStorage.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.VaultExtensions/src/NVault.VaultExtensions.csproj b/back-end/libs/NVault.VaultExtensions/src/NVault.VaultExtensions.csproj index 3783c83..e5dbe8c 100644 --- a/back-end/libs/NVault.VaultExtensions/src/NVault.VaultExtensions.csproj +++ b/back-end/libs/NVault.VaultExtensions/src/NVault.VaultExtensions.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable true README.md @@ -21,7 +21,7 @@ - + diff --git a/back-end/libs/NVault.VaultExtensions/src/VaultClientExtensions.cs b/back-end/libs/NVault.VaultExtensions/src/VaultClientExtensions.cs index 9ea9d24..d90941a 100644 --- a/back-end/libs/NVault.VaultExtensions/src/VaultClientExtensions.cs +++ b/back-end/libs/NVault.VaultExtensions/src/VaultClientExtensions.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/libs/NVault.VaultExtensions/src/VaultUserScope.cs b/back-end/libs/NVault.VaultExtensions/src/VaultUserScope.cs index b70028e..0e8796c 100644 --- a/back-end/libs/NVault.VaultExtensions/src/VaultUserScope.cs +++ b/back-end/libs/NVault.VaultExtensions/src/VaultUserScope.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/Base64KeyEncoder.cs b/back-end/plugins/nvault/src/Base64KeyEncoder.cs index 6e852ef..3b09a19 100644 --- a/back-end/plugins/nvault/src/Base64KeyEncoder.cs +++ b/back-end/plugins/nvault/src/Base64KeyEncoder.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/EncryptionResult.cs b/back-end/plugins/nvault/src/EncryptionResult.cs index ad08629..10741d2 100644 --- a/back-end/plugins/nvault/src/EncryptionResult.cs +++ b/back-end/plugins/nvault/src/EncryptionResult.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/Endpoints/Endpoint.cs b/back-end/plugins/nvault/src/Endpoints/Endpoint.cs index 4223a10..b8aa0c9 100644 --- a/back-end/plugins/nvault/src/Endpoints/Endpoint.cs +++ b/back-end/plugins/nvault/src/Endpoints/Endpoint.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as @@ -27,6 +27,7 @@ using FluentValidation; using NVault.VaultExtensions; +using VNLib.Utils.Logging; using VNLib.Utils.Extensions; using VNLib.Plugins; using VNLib.Plugins.Essentials; @@ -46,6 +47,8 @@ namespace NVault.Plugins.Vault.Endpoints [ConfigurationName("endpoint")] internal class Endpoint : ProtectedWebEndpoint { + const string EventLogTemplate = "Method {m}, UserID {uid}, Type {tp} Payload {p}"; + private static IValidator EventValidator { get; } = NostrEvent.GetValidator(); private static IValidator RelayValidator { get; } = NostrRelay.GetValidator(); private static IValidator KeyMetaValidator { get; } = NostrKeyMeta.GetValidator(); @@ -57,6 +60,7 @@ namespace NVault.Plugins.Vault.Endpoints private readonly NostrRelayStore _relays; private readonly NostrKeyMetaStore _publicKeyStore; private readonly bool AllowDelete; + private readonly ILogProvider? _abnoxiousLog; public Endpoint(PluginBase plugin, IConfigScope config) { @@ -71,6 +75,12 @@ namespace NVault.Plugins.Vault.Endpoints _relays = new NostrRelayStore(options); _publicKeyStore = new NostrKeyMetaStore(options); _vault = new NostrOpProvider(plugin); + + //Check for obnoxious logging + if (plugin.HostArgs.HasArgument("--nvault-obnoxious")) + { + _abnoxiousLog = plugin.Log.CreateScope("NVAULT EVENT"); + } } @@ -151,6 +161,8 @@ namespace NVault.Plugins.Vault.Endpoints return VirtualOk(entity, webm); } + _abnoxiousLog?.Information(EventLogTemplate, "POST", entity.Session.UserID[..10], "sign-event", nEvent); + //Create user scope VaultUserScope scope = new(entity.Session.UserID); @@ -193,6 +205,8 @@ namespace NVault.Plugins.Vault.Endpoints return VirtualClose(entity, webm, HttpStatusCode.NotFound); } + _abnoxiousLog?.Information(EventLogTemplate, "POST", entity.Session.UserID[..10], "decrypt-message", request); + VaultUserScope scope = new(entity.Session.UserID); //Try to decrypt the message @@ -233,6 +247,8 @@ namespace NVault.Plugins.Vault.Endpoints return VirtualClose(entity, webm, HttpStatusCode.NotFound); } + _abnoxiousLog?.Information(EventLogTemplate, "POST", entity.Session.UserID[..10], "encrypt-message", request); + VaultUserScope scope = new(entity.Session.UserID); try { diff --git a/back-end/plugins/nvault/src/INostrCryptoProvider.cs b/back-end/plugins/nvault/src/INostrCryptoProvider.cs index b66757c..c65d3e9 100644 --- a/back-end/plugins/nvault/src/INostrCryptoProvider.cs +++ b/back-end/plugins/nvault/src/INostrCryptoProvider.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/INostrKeyEncoder.cs b/back-end/plugins/nvault/src/INostrKeyEncoder.cs index a76ab19..fe1b379 100644 --- a/back-end/plugins/nvault/src/INostrKeyEncoder.cs +++ b/back-end/plugins/nvault/src/INostrKeyEncoder.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/INostrOperations.cs b/back-end/plugins/nvault/src/INostrOperations.cs index efb5947..c3a3053 100644 --- a/back-end/plugins/nvault/src/INostrOperations.cs +++ b/back-end/plugins/nvault/src/INostrOperations.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/INostrVault.cs b/back-end/plugins/nvault/src/INostrVault.cs index 37bc05e..e710538 100644 --- a/back-end/plugins/nvault/src/INostrVault.cs +++ b/back-end/plugins/nvault/src/INostrVault.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/ManagedCryptoprovider.cs b/back-end/plugins/nvault/src/ManagedCryptoprovider.cs index 2eeae56..fb15b8f 100644 --- a/back-end/plugins/nvault/src/ManagedCryptoprovider.cs +++ b/back-end/plugins/nvault/src/ManagedCryptoprovider.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/ManagedVaultClient.cs b/back-end/plugins/nvault/src/ManagedVaultClient.cs index ff7977c..2e523c4 100644 --- a/back-end/plugins/nvault/src/ManagedVaultClient.cs +++ b/back-end/plugins/nvault/src/ManagedVaultClient.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/Model/NostrContext.cs b/back-end/plugins/nvault/src/Model/NostrContext.cs index b70a38e..15900e2 100644 --- a/back-end/plugins/nvault/src/Model/NostrContext.cs +++ b/back-end/plugins/nvault/src/Model/NostrContext.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/Model/NostrEvent.cs b/back-end/plugins/nvault/src/Model/NostrEvent.cs index ccd5a2c..9bbfd63 100644 --- a/back-end/plugins/nvault/src/Model/NostrEvent.cs +++ b/back-end/plugins/nvault/src/Model/NostrEvent.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/Model/NostrKeyMeta.cs b/back-end/plugins/nvault/src/Model/NostrKeyMeta.cs index 2e18ba7..3f0b985 100644 --- a/back-end/plugins/nvault/src/Model/NostrKeyMeta.cs +++ b/back-end/plugins/nvault/src/Model/NostrKeyMeta.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/Model/NostrKeyMetaStore.cs b/back-end/plugins/nvault/src/Model/NostrKeyMetaStore.cs index 96d0a3c..bfb6a26 100644 --- a/back-end/plugins/nvault/src/Model/NostrKeyMetaStore.cs +++ b/back-end/plugins/nvault/src/Model/NostrKeyMetaStore.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/Model/NostrRelay.cs b/back-end/plugins/nvault/src/Model/NostrRelay.cs index e80d268..ab8cea7 100644 --- a/back-end/plugins/nvault/src/Model/NostrRelay.cs +++ b/back-end/plugins/nvault/src/Model/NostrRelay.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/Model/NostrRelayFlags.cs b/back-end/plugins/nvault/src/Model/NostrRelayFlags.cs index 352ff11..29f3994 100644 --- a/back-end/plugins/nvault/src/Model/NostrRelayFlags.cs +++ b/back-end/plugins/nvault/src/Model/NostrRelayFlags.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/Model/NostrRelayStore.cs b/back-end/plugins/nvault/src/Model/NostrRelayStore.cs index 42f48ab..699124b 100644 --- a/back-end/plugins/nvault/src/Model/NostrRelayStore.cs +++ b/back-end/plugins/nvault/src/Model/NostrRelayStore.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/NVault.csproj b/back-end/plugins/nvault/src/NVault.csproj index fa82c90..d83dd2f 100644 --- a/back-end/plugins/nvault/src/NVault.csproj +++ b/back-end/plugins/nvault/src/NVault.csproj @@ -1,7 +1,7 @@ - + - net6.0 + net8.0 enable true README.md @@ -21,9 +21,9 @@ - - - + + + @@ -36,5 +36,11 @@ + + + Always + + + diff --git a/back-end/plugins/nvault/src/NativeSecp256k1Library.cs b/back-end/plugins/nvault/src/NativeSecp256k1Library.cs index 2fcf447..abbafaf 100644 --- a/back-end/plugins/nvault/src/NativeSecp256k1Library.cs +++ b/back-end/plugins/nvault/src/NativeSecp256k1Library.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/NostrEntry.cs b/back-end/plugins/nvault/src/NostrEntry.cs index bdb78bb..2e57390 100644 --- a/back-end/plugins/nvault/src/NostrEntry.cs +++ b/back-end/plugins/nvault/src/NostrEntry.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/NostrMessageKind.cs b/back-end/plugins/nvault/src/NostrMessageKind.cs index 2a53928..507e941 100644 --- a/back-end/plugins/nvault/src/NostrMessageKind.cs +++ b/back-end/plugins/nvault/src/NostrMessageKind.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/back-end/plugins/nvault/src/NostrOpProvider.cs b/back-end/plugins/nvault/src/NostrOpProvider.cs index 5908e26..48ffe93 100644 --- a/back-end/plugins/nvault/src/NostrOpProvider.cs +++ b/back-end/plugins/nvault/src/NostrOpProvider.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/extension/src/entries/background/main.ts b/extension/src/entries/background/main.ts index 85e358a..a38eeff 100644 --- a/extension/src/entries/background/main.ts +++ b/extension/src/entries/background/main.ts @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as @@ -25,6 +25,7 @@ import { useEventTagFilterApi, useInjectAllowList, useMfaConfigApi, + usePermissionApi } from "../../features"; import { useBackgroundFeatures } from "../../features/framework"; @@ -42,5 +43,6 @@ register([ usePkiApi, useEventTagFilterApi, useInjectAllowList, - useMfaConfigApi + useMfaConfigApi, + usePermissionApi ]) \ No newline at end of file diff --git a/extension/src/entries/background/script.js b/extension/src/entries/background/script.js index b0211d1..2e3167b 100644 --- a/extension/src/entries/background/script.js +++ b/extension/src/entries/background/script.js @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/extension/src/entries/background/serviceWorker.js b/extension/src/entries/background/serviceWorker.js index b0211d1..2e3167b 100644 --- a/extension/src/entries/background/serviceWorker.js +++ b/extension/src/entries/background/serviceWorker.js @@ -1,4 +1,4 @@ -// Copyright (C) 2023 Vaughn Nugent +// Copyright (C) 2024 Vaughn Nugent // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as diff --git a/extension/src/entries/contentScript/auth-popup.html b/extension/src/entries/contentScript/auth-popup.html new file mode 100644 index 0000000..42a2ce3 --- /dev/null +++ b/extension/src/entries/contentScript/auth-popup.html @@ -0,0 +1,10 @@ + + + + + Authorize + + + +
+ \ No newline at end of file diff --git a/extension/src/entries/contentScript/primary/components/PromptPopup.vue b/extension/src/entries/contentScript/primary/components/PromptPopup.vue index 156dfb8..1f62877 100644 --- a/extension/src/entries/contentScript/primary/components/PromptPopup.vue +++ b/extension/src/entries/contentScript/primary/components/PromptPopup.vue @@ -1,12 +1,12 @@