Solved

Architecture Decisions For Silverlight and MSSQL

Posted on 2008-06-17
2
625 Views
Last Modified: 2008-07-02
I am trying to understand the appropriate architecture decisions and options for a new application to be developed in Silverlight with SQLServer as the back end database.

The Application will be distributed to all and Sundry who wish to use the application and the users data will be hosted in a secure centralised location.  The users are standard Internet users like you and me who use the Internet for something different everyday.

The application will run in Silverlight in the clients web browser.

I am considering using Web Services to allow the client to communicate directly with the SQL Server however the thought of having SQL Server Web Services (SODA/Native HTTP SOAP Access) directly accessible from the Internet really scares the heck out of me, not to mention I do not understand how the authentication would work.

It seems to me that if I can work out the authentication and authorisation I can just do:

<Silverlight> <--Internet--FW-->  [<MS SQL Native Web Services><SQL Server>]
(FW = Firewall)

But this seems really stupid, as I do security for a living and the thought of putting my SQL Server on the Internet (port 443/80 or otherwise only) seems pretty stupid...

So the other option seems to be:

<Silverlight> <--Internet--FW--> [<IIS><ASP.NET Web Service>] <---Local LAN--FW-->  [<MS SQL Native Web Services><SQL Server>]

Of course this now seems like a whole lot more work for very little gain....

I guess that the Silverlight Client will have to pass in a "username and password" with every Web Service Request which the ASP.NET server will verify via a web-service against the SQL Server and will then pass the request off to the SQL Server using impersonation.

The idea is that all the logic will be in the SQL Server, if something can not be done using a TransactSQL it will be done using a C# CLR, so the ASP.NET Service will merely be a pass-though proxy with some initial authentication for the username and password of the user.

Thoughts?
0
Comment
Question by:rowansmith
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 21827204
I thought the whole point of web services was they are accessible over the internet.

And I am by no means an expert on this, but can't you just use SSL to encrypt your clear text authentication details?
0
 
LVL 11

Accepted Solution

by:
rowansmith earned 0 total points
ID: 21854846
I found this great Microsoft document:

http://www.codeplex.com/WCFSecurityGuide

Patterns & Practices - Improving Web Services Security
Scenarios and Implementation Guidance for WCF

It is only in Beta at the time of me writing this, but it really summed up everything I needed to know.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
Let's recap what we learned from yesterday's Skyport Systems webinar.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question