s3toconfig 1.0

Rating: No reviews yet
Downloads: 82
Released: Oct 10, 2009
Updated: Oct 10, 2009 by pmiller
Dev status: Stable Help Icon

Recommended Download

Application s3toconfig-release-1_0-bin.zip
application, 67K, uploaded Oct 10, 2009 - 52 downloads

Other Available Downloads

Source Code s3toconfig-release-1_0-src.zip
source code, 69K, uploaded Oct 10, 2009 - 30 downloads

Release Notes

This is the first released version, provided in source code or binary only format.

Please include the readme and licence file wherever you deploy this.

In order to use this, you only need the Natol.S3ToConfig.ProtectedConfiguration.dll file and to follow the following steps:
  1. Add the Natol.S3ToConfig.ProtectedConfiguration.dll file to your projects bin folder, or the GAC on the machine
  2. Define the custom configuration provider in your app.config or web.config after the configSections element:
    1. <configProtectedData defaultProvider="SampleProvider"><providers><add name="SampleProvider" type="Natol.S3ToConfig.ProtectedConfiguration.ProtectedConfigurationProvider, Natol.S3ToConfig.ProtectedConfiguration" /></providers> </configProtectedData>
  3. Add a file to Amazon S3 at your desired location, giving it a key that represents the function of both your app and the context it runs in (remembering amazon s3 bucket names are globally unique). In this file, put the contents of your configuration section, eg:
    1. <sampleConfig><settings sampleConfigSetting="This Setting came from s3"></settings></sampleConfig>
  4. Replace the contents of your static configuration section with an EncyptedData element containing the location of your new configuration object in Amazon S3 and let it know our custom provider should handle the 'decryption', eg:
    1. <sampleConfig configProtectionProvider="s3ConfigSectionProvider"> <EncryptedData> <s3ProviderInfo s3AccessKey="REPLACE_WITH_YOUR_VALUE" s3SecretKey="REPLACE_WITH_YOUR_VALUE" s3BucketName="REPLACE_WITH_YOUR_VALUE" objectKey="test-s3toconfig-sampleconsoleapplication-sampleconfig" /></EncryptedData> </sampleConfig>
    2. That's it. Your configuration section will work exactly as normal, even calling ConfigurationManager.RefreshSection() which will then reload from S3... :-) Seriously - try the demo

Reviews for this release

No reviews yet for this release.