Re: security on the web.config file
From: GrantMagic (grant_at_magicalia.com)
Date: 09/22/04
- Next message: GrantMagic: "Re: Authorization of request"
- Previous message: Lasse Edsvik: "Re: RRS Problem"
- In reply to: Keith Henderson: "security on the web.config file"
- Next in thread: Keith Henderson: "Re: security on the web.config file"
- Reply: Keith Henderson: "Re: security on the web.config file"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Sep 2004 14:02:14 +0100
AS far as i know you cannot encrypt the web.config file.
Security wise, the .config file can only we accessed from the server it
resides on ... i.e. it cannot be accessed through a web browser.
So as long as no one has access to that server (either via a network share,
or physically using the computer itself), then no one will be able to view
that web.config file making it perfectly safe . After all , you are putting
your database connection string in there.
If you would prefer this to leave the user account information outside of
the web.config file, you can create an account with just the rights needed
for the app., and no other privalages on the server on which it resides.
Furthermore, Why are you impersonating a user, are their files on that box
that the app needs to access, by default asp.net uses the IIS user created
on installing the .NET framework. That should be sufficient to access
whatever is required on the application (unless maybe accessing network
shares or writing to folders outside of the application). That way you don't
need to list the user account details in the web.config file at all.
I hope that sheds some light on your problem
Regards
Grant
"Keith Henderson" <khenderson@projectresources.nospam.com> wrote in message
news:OOccR7JoEHA.708@TK2MSFTNGP09.phx.gbl...
>I have a web site that doesn't use SSL. It is running the 1.1 version of
>the Dotnet Framework. In my web.config file I have added some data for
>connection strings and also I'm using identity impersonate set to true, so
>in my web.config it contains names and passwords for the domain and in
>connection strings. I believe this is probably very unsafe or is it not
>unsafe. Should I be concerned? Can the entire web.config be encrypted?
>If I should encrypt it, can someone in this group provide some code samples
>and links?
>
- Next message: GrantMagic: "Re: Authorization of request"
- Previous message: Lasse Edsvik: "Re: RRS Problem"
- In reply to: Keith Henderson: "security on the web.config file"
- Next in thread: Keith Henderson: "Re: security on the web.config file"
- Reply: Keith Henderson: "Re: security on the web.config file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|