Commit Graph

4591 Commits

Author SHA1 Message Date
Victor Hurdugaci e89ae2f6c3 Merge branch 'release' into dev 2015-04-01 13:22:45 -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
Victor Hurdugaci 6b1cb5ca7a Skip projects that were not cloned 2015-04-01 09:40:50 -07:00
Victor Hurdugaci bfd2467ad4 Merge release in dev 2015-03-31 11:31:36 -07:00
Victor Hurdugaci c354f0a8ba New assembly file version (with year) 2015-03-31 09:19:05 -07:00
David Fowler 0fdf8f6bf1 Marked build.sh as executable 2015-03-31 05:23:09 -07:00
Hao Kung f3de094815 React to hosting 2015-03-30 18:19:35 -07:00
Victor Hurdugaci 188f5e8328 Set the file version environment variable 2015-03-30 14:53:56 -07:00
anurse 9e872c3721 update dnvm
fixes #195
2015-03-30 11:30:59 -07:00
Pranav K f4794e5c7f Make pushing to NuGet feed more resilient. 2015-03-27 16:09:56 -07:00
Suhas Joshi 8cc1d57ab2 UpdateRepos for release 2015-03-26 11:58:31 -07:00
suhasj 19696895a2 Merge branch 'release' into dev 2015-03-25 11:48:10 -07:00
suhasj 7b16347079 Updating to release NuGet.config 2015-03-25 11:48:08 -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
suhasj 3bb43e121b Updating feed to release 2015-03-25 10:41:48 -07:00
Wei Wang 10cfee154b Remove k command and use dnx instead 2015-03-24 21:47:31 -07:00
Wei Wang 7b707e3b7c Remove k command and use dnx instead 2015-03-24 21:28:25 -07:00
Wei Wang 1d8f64d71c Remove k command and use dnx instead 2015-03-24 17:34:51 -07:00
Wei Wang 3cd272a96a Rename kpm to dnu in standard goal scripts 2015-03-20 10:34:39 -07:00
Hao Kung 226257020b React to hosting 2015-03-19 12:11:02 -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
N. Taylor Mullen bd14c064e9 Fix DNX naming issue for 'k test'.
- This re-enables CoreCLR testing when running build.cmd.
2015-03-18 13:35:59 -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
Victor Hurdugaci a14b35ca6c Skip credentials prompt for CI builds 2015-03-12 16:23:47 -07:00
Brennan 8fb42e4d16 Update xunit.runner.kre => xunit.runner.aspnet. 2015-03-12 16:14:29 -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
Doug Bunting 90294aa49c Fix build failures when source is under a directory with spaces in the name
- aspnet/Mvc#2082
- problems specific to local `node` and related installations
 - quote authenticode verification target
 - quote local `node` library paths
 - quote local `npm.cmd` path (with ye olde `/S` double-quoting hack)
 - quote `--prefix` values in `npm install` commands
 - quote `rimraf` directories to delete
2015-03-12 10:33:12 -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 07f78bab6f Do not use deprecated `dnvm -x86` switch 2015-03-11 16:58:37 -07:00
Doug Bunting 20fe4f8d63 Do not use deprecated `dnvm -x86` switch 2015-03-11 16:58:20 -07:00
Doug Bunting 878541c220 Do not use deprecated `dnvm -x86` switch
- avoid `The -x86 switch has been deprecated. Use the '-arch x86' parameter instead`
2015-03-11 15:24:34 -07:00
N. Taylor Mullen a43664286a Update .kproj => .xproj. 2015-03-11 14:09:20 -07:00
N. Taylor Mullen 8c7a47fb00 Update .kproj => .xproj. 2015-03-11 14:05:01 -07:00
Doug Bunting 456a38a249 Fix the `init` target
- correct check for whether target file is present
- correct `makefile.shade` filename
- do not copy master and release config files into every repo
2015-03-11 11:17:54 -07:00