DPAPI and config files

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default DPAPI and config files

    Hello. This is about DPAPI and configuration files.
    Basically, what I understand is when loading the exe assembly the framework
    takes parameters from the config file and loads them.
    I want to store THE ENTIRE web.config ( or any other config file ) using
    DPAPI.

    That is - I want to develop a component which intercept the frameworks
    request to the web.config, decrypt the config file stored in the DPAPI
    protected storage and give it to the framework for regular execution.

    The thing is - I want it to be transparent. I don't want other development
    teams to be concered and implement this logic in their applications.

    Any idea's ?

    Dan Amiga,
    Israel.






    Dan Amiga Guest

  2. Similar Questions and Discussions

    1. Protect Files in Web.Config?
      I have a web.config section that only allows certain groups into a subdirectory. Is it possible to specify that only some types of files (example...
    2. Where are the Xorg config files ?
      Hi all, I installed FreeBSD 5.3 along with Xorg 6.7.0-9 and KDE 3.3.0-4. I started KDE by creating an .xinitrc file in my home directory containing...
    3. The same web.config and global.asax files
      Hello, I have to project: one ASN.NET project and another - Web Service in the same solution. I want to use the same web.config and...
    4. Config files
      Hi Group, I have following options for working with the configuration files with the relatively large web application. 1. Configuration...
    5. What are all those *.config.old files?
      Hello, I am not totally positive if you can delete them. You might try to delete them by sending them to the Recycle Bin folder. Try it out the...
  3. #2

    Default Re: DPAPI and config files

    The configuration application block offers similar functionality but
    relegates most of the config info to another file (not the web.config) and
    encrypts that.

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/cmab.asp[/url]

    --
    - Paul Glavich
    Microsoft MVP - ASP.NET


    "Dan Amiga" <dan.amiga@ness.com> wrote in message
    news:eQem$NoiEHA.2448@TK2MSFTNGP12.phx.gbl...
    > Hello. This is about DPAPI and configuration files.
    > Basically, what I understand is when loading the exe assembly the
    framework
    > takes parameters from the config file and loads them.
    > I want to store THE ENTIRE web.config ( or any other config file ) using
    > DPAPI.
    >
    > That is - I want to develop a component which intercept the frameworks
    > request to the web.config, decrypt the config file stored in the DPAPI
    > protected storage and give it to the framework for regular execution.
    >
    > The thing is - I want it to be transparent. I don't want other development
    > teams to be concered and implement this logic in their applications.
    >
    > Any idea's ?
    >
    > Dan Amiga,
    > Israel.
    >
    >
    >
    >
    >
    >

    Paul Glavich [MVP - ASP.NET] Guest

  4. #3

    Default Re: DPAPI and config files

    I am talking about Framework config files, not only Web.Config, also
    Machine.config, etc.
    How does this application block handels options that must exists before the
    assembly loads such as processmodel / impersonation ?




    "Paul Glavich [MVP - ASP.NET]" <glav@aspalliance.com-NOSPAM> wrote in
    message news:eNMsN92iEHA.340@TK2MSFTNGP10.phx.gbl...
    > The configuration application block offers similar functionality but
    > relegates most of the config info to another file (not the web.config) and
    > encrypts that.
    >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/[/url]
    cmab.asp
    >
    > --
    > - Paul Glavich
    > Microsoft MVP - ASP.NET
    >
    >
    > "Dan Amiga" <dan.amiga@ness.com> wrote in message
    > news:eQem$NoiEHA.2448@TK2MSFTNGP12.phx.gbl...
    > > Hello. This is about DPAPI and configuration files.
    > > Basically, what I understand is when loading the exe assembly the
    > framework
    > > takes parameters from the config file and loads them.
    > > I want to store THE ENTIRE web.config ( or any other config file ) using
    > > DPAPI.
    > >
    > > That is - I want to develop a component which intercept the frameworks
    > > request to the web.config, decrypt the config file stored in the DPAPI
    > > protected storage and give it to the framework for regular execution.
    > >
    > > The thing is - I want it to be transparent. I don't want other
    development
    > > teams to be concered and implement this logic in their applications.
    > >
    > > Any idea's ?
    > >
    > > Dan Amiga,
    > > Israel.
    > >
    > >
    > >
    > >
    > >
    > >
    >
    >

    Dan Amiga Guest

  5. #4

    Default Re: DPAPI and config files

    I don't believe you can do what you want to do as there are no hooks into
    the configuration file APIs at the level you need. The best you could do
    would be to encrypt specific data or use something like the configuration
    application block as previously mentioned.

    Joe K.

    "Dan Amiga" <dan.amiga@ness.com> wrote in message
    news:eg3mdI3iEHA.356@tk2msftngp13.phx.gbl...
    > I am talking about Framework config files, not only Web.Config, also
    > Machine.config, etc.
    > How does this application block handels options that must exists before
    the
    > assembly loads such as processmodel / impersonation ?
    >
    >
    >
    >
    > "Paul Glavich [MVP - ASP.NET]" <glav@aspalliance.com-NOSPAM> wrote in
    > message news:eNMsN92iEHA.340@TK2MSFTNGP10.phx.gbl...
    > > The configuration application block offers similar functionality but
    > > relegates most of the config info to another file (not the web.config)
    and
    > > encrypts that.
    > >
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/[/url]
    > cmab.asp
    > >
    > > --
    > > - Paul Glavich
    > > Microsoft MVP - ASP.NET
    > >
    > >
    > > "Dan Amiga" <dan.amiga@ness.com> wrote in message
    > > news:eQem$NoiEHA.2448@TK2MSFTNGP12.phx.gbl...
    > > > Hello. This is about DPAPI and configuration files.
    > > > Basically, what I understand is when loading the exe assembly the
    > > framework
    > > > takes parameters from the config file and loads them.
    > > > I want to store THE ENTIRE web.config ( or any other config file )
    using
    > > > DPAPI.
    > > >
    > > > That is - I want to develop a component which intercept the frameworks
    > > > request to the web.config, decrypt the config file stored in the DPAPI
    > > > protected storage and give it to the framework for regular execution.
    > > >
    > > > The thing is - I want it to be transparent. I don't want other
    > development
    > > > teams to be concered and implement this logic in their applications.
    > > >
    > > > Any idea's ?
    > > >
    > > > Dan Amiga,
    > > > Israel.
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  6. #5

    Default Re: DPAPI and config files

    Thanks,
    It's already a progress if you understood what I wanted :)
    How can I be sure there are no Hooks into it ?
    Where else can I post for info ?

    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:eOZ8ot3iEHA.3016@tk2msftngp13.phx.gbl...
    > I don't believe you can do what you want to do as there are no hooks into
    > the configuration file APIs at the level you need. The best you could do
    > would be to encrypt specific data or use something like the configuration
    > application block as previously mentioned.
    >
    > Joe K.
    >
    > "Dan Amiga" <dan.amiga@ness.com> wrote in message
    > news:eg3mdI3iEHA.356@tk2msftngp13.phx.gbl...
    > > I am talking about Framework config files, not only Web.Config, also
    > > Machine.config, etc.
    > > How does this application block handels options that must exists before
    > the
    > > assembly loads such as processmodel / impersonation ?
    > >
    > >
    > >
    > >
    > > "Paul Glavich [MVP - ASP.NET]" <glav@aspalliance.com-NOSPAM> wrote in
    > > message news:eNMsN92iEHA.340@TK2MSFTNGP10.phx.gbl...
    > > > The configuration application block offers similar functionality but
    > > > relegates most of the config info to another file (not the web.config)
    > and
    > > > encrypts that.
    > > >
    > > >
    > >
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/[/url]
    > > cmab.asp
    > > >
    > > > --
    > > > - Paul Glavich
    > > > Microsoft MVP - ASP.NET
    > > >
    > > >
    > > > "Dan Amiga" <dan.amiga@ness.com> wrote in message
    > > > news:eQem$NoiEHA.2448@TK2MSFTNGP12.phx.gbl...
    > > > > Hello. This is about DPAPI and configuration files.
    > > > > Basically, what I understand is when loading the exe assembly the
    > > > framework
    > > > > takes parameters from the config file and loads them.
    > > > > I want to store THE ENTIRE web.config ( or any other config file )
    > using
    > > > > DPAPI.
    > > > >
    > > > > That is - I want to develop a component which intercept the
    frameworks
    > > > > request to the web.config, decrypt the config file stored in the
    DPAPI
    > > > > protected storage and give it to the framework for regular
    execution.
    > > > >
    > > > > The thing is - I want it to be transparent. I don't want other
    > > development
    > > > > teams to be concered and implement this logic in their
    applications.
    > > > >
    > > > > Any idea's ?
    > > > >
    > > > > Dan Amiga,
    > > > > Israel.
    > > > >
    > > > >
    > > > >
    > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Dan Amiga Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139