简体   繁体   中英

Secure web services using Symfony

So I have Symfony project which is also in charge of database abstraction and the data layer. In short - all data requests should go through it.

Now I want to have external components that will want to query / update stuff in the database, using web service API that I expose.

Question: How do I make sure these web services are running inside a secure channel? I don't want unauthorized users to update my database, and I don't want eavesdroppers get hold of sensitive data. Is setting up client authentication using PKI a viable option? or is it overkill? What's the way this is tackled?

Thanks! -DBG

First of all, you if you have a limited number of service users, and know their ips, you can restict access to ceirtain urls by ips. Next, have a look at Practical symfony , where they embed an authentication token into the url.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM