cvs: phpdoc-zh /chapters security.xml
| From: | Gregory Song | Date: | Tue, 25 Feb 2003 08:49:06 +0000 |
| Subject: | cvs: phpdoc-zh /chapters security.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1131@lists.php.net to get a copy of this message | ||
gregory Tue Feb 25 03:49:06 2003 EDT
Modified files:
/phpdoc-zh/chapters security.xml
Log:
one more section is translated...
Index: phpdoc-zh/chapters/security.xml
diff -u phpdoc-zh/chapters/security.xml:1.4 phpdoc-zh/chapters/security.xml:1.5
--- phpdoc-zh/chapters/security.xml:1.4 Tue Jan 21 00:43:56 2003
+++ phpdoc-zh/chapters/security.xml Tue Feb 25 03:49:06 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- $Author: gregory $ -->
<!-- EN-Revision: 1.51 Maintainer: Gregory Status: ready -->
<chapter id="security">
@@ -302,47 +302,23 @@
<sect2 id="security.database.design">
<title>Éè¼ÆÊý¾Ý¿â</title>
<simpara>
- The first step is always to create the database, unless you want to use
- an existing third party's one. When a database is created, it is
- assigned to an owner, who executed the creation statement. Usually, only
- the owner (or a superuser) can do anything with the objects in that
- database, and in order to allow other users to use it, privileges must be
- granted.
+
Ò»°ãÀ´ËµµÚÒ»²½×ÜÊǽ¨Á¢Êý¾Ý¿â£¬³ý·ÇÄúÏ£ÍûʹÓÃÒѾ´æÔڵĵÚÈý·½Êý¾Ý¿â¡£µ±Ò»¸öÊý¾Ý¿â±»½¨Á¢ºó£¬Ëü½«±»Ö¸¶¨¸øÒ»¸öËùÓÐÕߣ¬¼´ÔËÐн¨Á¢Êý¾Ý¿âÓï¾äµÄÓû§¡£Í¨³££¬Ö»ÓÐËùÓÐÕߣ¨»òÕß³¬¼¶Óû§£©²ÅÄܶԸÃÊý¾Ý¿âÖеĶÔÏó½øÐÐÈκβÙ×÷£¬ÎªÁËÄÜÈÃÆäËüÓû§Ê¹ÓøÃÊý¾Ý¿â£¬ÐèÒª½øÐÐȨÏÞÉèÖá£
</simpara>
<simpara>
- Applications should never connect to the database as its owner or a
- superuser, because these users can execute any query at will, for
- example, modifying the schema (e.g. dropping tables) or deleting its
- entire content.
+
Ó¦ÓóÌÐò¾ö²»ÄÜÓÃËùÓÐÕß»òÕß³¬¼¶Óû§µÄÕ˺ÅÀ´Á¬½Óµ½Êý¾Ý¿â£¬ÒòΪÕâЩÓû§¿ÉÒÔÖ´ÐÐÈκβéѯ£¬ÀýÈ磬ÐÞ¸ÄÊý¾Ý½á¹¹£¨Èçɾ³ý±í¸ñ£©»òÕßɾ³ýËùÓеÄÄÚÈÝ¡£
</simpara>
<simpara>
- You may create different database users for every aspect of your
- application with very limited rights to database objects. The most
- required privileges should be granted only, and avoid that the same user
- can interact with the database in different use cases. This means that if
- intruders gain access to your database using one of these credentials,
- they can only effect as many changes as your application can.
+
Äú¿ÉÒÔΪӦÓóÌÐò²»Í¬µÄ²¿·Ö½¨Á¢²»Í¬µÄÊý¾Ý¿âÕ˺ţ¬Ê¹µÃËüÃÇÖ°ÄܶÔÊý¾Ý¿â¶ÔÏóÐÐʹ·Ç³£ÓÐÏÞµÄȨÏÞ¡£¶ÔÕâЩÕ˺ÅÓ¦¸ÃÖ»¸³Óè×îÐèÒªµÄȨÏÞ£¬Í¬Ê±Ó¦¸Ã·ÀÖ¹ÏàͬµÄÓû§Äܹ»ÔÚ²»Í¬µÄʹÓÃÇé¿öÓëÊý¾Ý¿â½øÐн»Á÷¡£ÕâÒ²¾ÍÊÇ˵£¬Èç¹ûijһ¸öÈëÇÖÕßÀûÓÃÕâЩÕ˺ÅÖеÄijһ¸ö»ñµÃÁË·ÃÎÊÄúÊý¾Ý¿âµÄȨÏÞ£¬ËûÃÇÒ²½ö½öÄܹ»Ó°Ïìµ½ÄúµÄÓ¦ÓóÌÐòÁ¦ËùÄܼ°µÄ·¶Î§¡£
</simpara>
<simpara>
- You are encouraged not to implement all the business logic in the web
- application (i.e. your script), instead to do it in the database schema
- using views, triggers or rules. If the system evolves, new ports will be
- intended to open to the database, and you have to reimplement the logic
- in each separate database client. Over and above, triggers can be used
- to transparently and automatically handle fields, which often provides
- insight when debugging problems with your application or tracing back
- transactions.
+ Äú×îºÃ²»Òª°ÑËùÓеÄÊÂÎï¹ý³Ì¶¼·ÅÔÚ WEB
Ó¦ÓóÌÐò£¨¼´ÄúµÄ½Å±¾£©ÖÐÀ´ÊµÊ©£¬¶ø³ä·ÖµÄÀûÓÃÊý¾Ý¿â½á¹¹£¬Ê¹ÓÃÊÓͼ£¨view£©¡¢´¥·¢Æ÷£¨trigger£©»òÕß¹æÔò£¨rule£©¡£Èç¹ûÐèÒª¶Ôϵͳ½øÐÐÉý¼¶£¬ÔòÐèÒª¶ÔÊý¾Ý¿â¿ª±ÙеĶ˿ڣ¬Òò´ËÄúÐèÒª¶Ôÿһ¸ö¶ÀÁ¢µÄÊý¾Ý¿â¿Í»§ÖØÐÂÉèÖÃȨÏÞ¡£×ÜÖ®£¬´¥·¢Æ÷¿ÉÒÔ±»ÓÃÀ´Í¸Ã÷µØºÍ×Ô¶¯µØ´¦Àí×ֶΣ¬¸ÃÌØÐÔ¿ÉÒÔÔÚµ÷ÊÔÓ¦ÓóÌÐòµØÎÊÌâ»òÕß×·×Ùºǫ́ÊÂÎïʱÌṩ±ãÀûÐÅÏ¢¡£
</simpara>
</sect2>
<sect2 id="security.database.connection">
<title>Á¬½ÓÊý¾Ý¿â</title>
<simpara>
- You may want to estabilish the connections over SSL to encrypt
- client/server communications for increased security, or you can use ssh
- to encrypt the network connection between clients and the database server.
- If either of them is done, then monitoring your traffic and gaining
- informations in this way will be a hard work.
+ Äú¿ÉÄÜÏ£Íûͨ¹ý SSL
½¨Á¢Á¬½ÓÀ´¼ÓÃܿͻ§¶ËºÍ·þÎñ¶ËÖ®¼äµÄͨѶÒÔÔö¼Ó°²È«ÐÔ£¬»òÕßÄú¿ÉÒÔʹÓÃ
ssh
À´¼ÓÃܿͻ§¶ËºÍÊý¾Ý¿â·þÎñÆ÷Ö®¼äµÄÍøÂçÁ¬½Ó¡£Èç¹ûÄúʵʩÁËÕâЩ´ëÊ©£¬Ôò¼àÊÓÄúµÄÍøÂçÁ÷Á¿ÒÔ¼°ÒÔÕâÖÖ·½Ê½»ñÈ¡ÐÅÏ¢½«±ä³ÉÊ®·Ö¸´ÔӵŤ×÷¡£
</simpara>
<!--simpara>
If your database server has native SSL support, consider to use <link