Граф коммитов

158 Коммитов

Автор SHA1 Сообщение Дата
Troy Dai 4a58540bdf React to DNX packages name change 2015-05-01 11:05:09 -07:00
Brennan d578779fa6 Revert Runtime.Abstractions 2015-04-29 23:58:04 -07:00
Brennan a1144274a1 React to Interface package renames 2015-04-29 22:42:00 -07:00
Brennan 7ecbee2f7d Interfaces->Abstractions 2015-04-29 17:21:04 -07:00
Matt Ellis d386e78ee6 Use $HOME as a possible storage location
If LOCALAPPDATA and USERPROFILE are both null (as is the case on
Linux/OSX) use "$HOME/.aspnet" as the root folder for data protection
keys

Fixes #76
2015-04-19 21:52:35 -07:00
Pranav K 8983a03fed Reacting to changes in OptionsModel 2015-04-16 16:57:44 -07:00
N. Taylor Mullen 7591d5b813 Update .travis.yml and appveyor.yml to build quietly. 2015-04-07 16:14:26 -07:00
N. Taylor Mullen d5740add2d Merge branch 'release' into dev 2015-04-07 14:42:09 -07:00
N. Taylor Mullen 8b9b809ecd Add serviceable attribute to projects.
aspnet/DNX#1600
2015-04-07 14:41:49 -07:00
Kiran Challa e3f4e51c0d Reacting to ILogger api changes 2015-04-04 00:44:36 -07:00
Wei Wang da8f694328 Fix AppVeyor git line ending config 2015-04-03 17:08:11 -07:00
Doug Bunting 1f97db54fa Merge remote-tracking branch 'origin/release' into dev 2015-04-03 11:36:31 -07:00
N. Taylor Mullen ec61315412 Update project.json, code=>compile. Also remove **/*.cs and **/*.vs from compile section. These are now defaulted to on. 2015-04-02 16:15:25 -07:00
Doug Bunting 19567ad39d Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename 2015-04-02 13:49:24 -07:00
Troy Dai 1d7ac248ee Update global.json, sources=>projects 2015-04-02 09:19:54 -07:00
Pranav K a8134feb03 Adding status badges 2015-04-01 18:10:11 -07:00
N. Taylor Mullen df74818199 Turn off sudo for .travis.yml. 2015-04-01 17:04:41 -07:00
N. Taylor Mullen 2cb0ddce82 Add travis and appveyor CI support. 2015-04-01 15:40:28 -07:00
Praburaj 56cfbdde82 Fixing dataprotection on IIS
Fixes: https://github.com/aspnet/DataProtection/issues/73

On IIS where there is no user profile, the code tries to always read the 32bit registry view irrespective of the bitness of the worker process. So in case of 64 bit app pools the registry key is null so it falls back to in memory ephemeral repository. On 32 bit app pool it can find an appropriate registry key, but the keyRepositoryDescriptor is not populated resulting in a null reference exception.

Current behavior:
X86 throws
X64 falls back to in memory ephemeral

With fix:
Both X86 and X64 will use DPAPI.
2015-04-01 13:02:09 -07:00
Praburaj 33fa06a25c Fixing dataprotection on IIS
Fixes: https://github.com/aspnet/DataProtection/issues/73

On IIS where there is no user profile, the code tries to always read the 32bit registry view irrespective of the bitness of the worker process. So in case of 64 bit app pools the registry key is null so it falls back to in memory ephemeral repository. On 32 bit app pool it can find an appropriate registry key, but the keyRepositoryDescriptor is not populated resulting in a null reference exception.

Current behavior:
X86 throws
X64 falls back to in memory ephemeral

With fix:
Both X86 and X64 will use DPAPI.
2015-04-01 11:54:24 -07:00
David Fowler 0fdf8f6bf1 Marked build.sh as executable 2015-03-31 05:23:09 -07:00
suhasj 340d2c9fd6 Merge branch 'release' into dev 2015-03-25 11:29:31 -07:00
suhasj 13dc9d6018 Updating to release NuGet.config 2015-03-25 11:29:29 -07:00
Wei Wang 7b707e3b7c Remove k command and use dnx instead 2015-03-24 21:28:25 -07:00
Levi B 794f60b104 Fix content path for config transform
This forces installation failure in a 4.5 project.
2015-03-19 11:00:05 -07:00
Levi B d2def94712 Reliability: Tweak comparison in key revocation checks 2015-03-18 15:15:58 -07:00
Levi B fd08325918 Skip registry checks on non-Windows platforms 2015-03-18 10:42:09 -07:00
Levi B ca840d3711 Code cleanup in KeyDerivation
- Rename PRF members to be HMAC functions (which is technically correct)
- Use NotNullAttribute where possible
2015-03-17 22:03:43 -07:00
Levi B 271ec1bd4b Move IApplicationDiscriminator to Infrastructure namespace 2015-03-17 20:56:58 -07:00
Levi B 22927ec289 Add simple file-based provider instantiation APIs 2015-03-17 15:36:58 -07:00
Levi B 84490846b6 Move time-limited data protector to Extensions project 2015-03-17 14:52:15 -07:00
Levi B 94233e76ff Remove experimental .Azure project 2015-03-17 10:45:21 -07:00
Levi B d673df7ef3 Reliability improvements to key ring updates
- Optimistically treat failures as transient and continue to use any existing cached key ring for a short period of time
- Updates to the key ring shouldn't block other threads; they can use the outdated version while waiting for the update
2015-03-17 00:46:24 -07:00
Levi B 612a81d9ce Defer processing <key> descriptors until necessary
- Make CreateNewKey more robust against bad key repositories
- Don't hide key deserialization errors
2015-03-16 23:32:20 -07:00
Levi B 4365b531d8 Use C# 6 string interpolation feature
Provides cleanup in logging and removes calls to String.Format
2015-03-16 21:38:21 -07:00
Levi B 0966e37d94 Doc comment cleanup on GetApplicationUniqueIdentifier 2015-03-14 15:43:39 -07:00
Levi B 82d92064c5 Continued API improvements and refactoring
- Add helpful extension methods to Interfaces project
- Auto heuristic detection now writes default protection settings to the ILogger
- Cleanup dead methods / add useful methods in DataProtectionConfiguration
- Update System.Web compatibility project to allow mapping MachineKey.Protect directly to IDataProtector.Protect
2015-03-14 14:29:39 -07:00
N. Taylor Mullen d3313f2b6e Update xunit.runner.kre => xunit.runner.aspnet. 2015-03-12 17:07:49 -07:00
Levi B bf7283697d Flow logging through the AuthenticatedEncryption types 2015-03-12 16:12:17 -07:00
Levi B 7fe33e8159 DataProtectionServices should prefer registry over defaults
Comment cleanup in CNG-GCM ExportToXml
2015-03-12 14:22:45 -07:00
Levi B 4f2288c3da Introduce concept of a "fallback key"
This key is used if there is no preferred default key and the developer has disabled automatic key generation. This will keep the service from falling over if the keys are not rolled and they all expire.
2015-03-11 19:39:41 -07:00
Levi B 58c823bc45 Rename KeyLifetimeOptions -> KeyManagementOptions
Simplify default key resolution logic
Introduce API for disabling automatic key generation
2015-03-11 19:39:35 -07:00
Doug Bunting 20fe4f8d63 Do not use deprecated `dnvm -x86` switch 2015-03-11 16:58:20 -07:00
N. Taylor Mullen 8c7a47fb00 Update .kproj => .xproj. 2015-03-11 14:05:01 -07:00
Levi B bb1b49cc1c Fix PoliCheck violations. 2015-03-10 23:40:39 -07:00
Levi B e8cc1106d8 Significant refactorings throughout the data protection stack
- Move IDataProtectionProvider, IDataProtector, and extension methods to their own package
- Simplify the APIs for registering and configuring the system
- Default implementation now auto-detects capabilities of OS
- Use EncryptedXml for X.509 certificate-based encryption
- Add ability to escrow secret material upon key creation
- Use centralized system policy for default algorithm selection
- Simplify System.Web compatibility layer
- Add unit tests, logging, and doc comments throughout solution
2015-03-10 22:43:45 -07:00
Praburaj 04008af479 Renaming Nuget.org feed key name to Nuget.
fixes https://github.com/aspnet/Universe/issues/174
2015-03-09 20:37:28 -07:00
N. Taylor Mullen 8f0b9a56b8 Remove BOM from project.json, *.cmd, *.sh and *.shade files. 2015-03-09 12:52:23 -07:00
N. Taylor Mullen 87a89457bd Update build.sh to use dnvm correctly. 2015-03-08 12:48:17 -07:00
N. Taylor Mullen 00d6e37d6c Update kvm/KVM/Kvm => dnvm/DNVM/Dnvm. 2015-03-08 12:48:17 -07:00