CouchDB - SPLessons
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

CouchDB Security

CouchDB Security

shape Description

CouchDB With Rails Security indicates the aggregate measures utilise for safe guarding and ensuring a database or database administration programming from illegitimate use and malignant hazards and interventions. It is a widely named to incorporates a huge number of procedures, apparatuses and systems that guarantee security inside a database settings. CouchDB With Rails Security measures contain the following methods such as:

Admin party

shape Description

CouchDB With Rails Security has the possibility of an administrator client that permits to do anything in the installation process of CouchDB database. In such kind of circumstances, all the users have administrator privileges and can access and alter the information and can make particular administrator clients with a username and secret key and with all necessary credentials. CouchDB With Rails Security additionally characterizes an arrangement of solicitations that lone administrator clients are permitted for operating. By defining one or more particular administrator clients, CouchDB will request for identifying some of the specific solicitations such as

Creating a new client

shape Description

For creating a new client in the couchDB database is as  follows: [c] > HOST="http://127.0.0.1:5984" > curl -X PUT $HOST/database {"ok":true} > curl -X PUT $HOST/_config/admins/xyz -d '"series"' [/c] Here in the above example the process of creating a new user as been explained.

Basic authentications

shape Description

CouchDB With Rails won't permit us to make new databases unless we give the right administrator client accreditation. The authentication process is shown below. [c] > HOST="http://xyz:series@127.0.0.1:5984" > curl -X PUT $HOST/xyz {"ok":true} [/c] Here if the authentication fails then it doesn't permit a client to use all the necessary credentials for accessing the informational records.

shape Description

In the process of basic authentication, the password is in terms of plain text which is more convenient for normal kind of situations. And this type of password verification is not so secure and need to add more productive measures for safe guarding the clients and admins credentials. So to over come this problems CouchDB With Rails Security uses another type of authentication such as cookie authentications. By using this cookie authentication,the application does not need to add another dialog for the logins for the new users browsers and in another method HTML forms can be used for submitting the logins into the couchDB database and can create a OTP to the user for performing the further solicitations in the couchDB database. When the request is generated the process of authenticating a new client and can get connected by using the OTP without further verifying the password repeatedly and this OTP authentication code is only valid for few minutes. i.e, 10 minutes. These Application programming interface is good enough for decoding the HTML structure entries, so one don't need to fall back on any smarts in the operations. If the programmer doesn't use HTML forms for logins, then by sending an HTTP request and thus generate it as a HTML form generated auto machines and techniques and that looks very simple and efficient. The cookie authentication process is as follows: [c]> HOST="http://127.0.0.1:5984" > curl -vX POST $HOST/_session \ -H 'Content-Type:application/x-www-form-urlencoded' \ -d 'name=xyz1&password=series' > HTTP/1.1 200 OK > Set-Cookie: AuthSession=YW5uYTo0QUIzOTdFQjrC4ipN-D-53hw1sJepVzcVxnriEw; > Version=1; Path=/; {"ok":true} [/c] Here in the above operation the 200 OK solicitation code describes that the code is good, and a set cookie header can be included in the OTP for the further solicitations and the JSON standard response code generate the request and give back the outcome set as successful and can utilize these OTP's for creating a new solicitations with the same client without transferring the authentication details such as username and password repeatedly.

Summary

shape Key Points

  • CouchDB With Rails Security - Provides the aggregate measures for safe guarding the couchDB database.
  • Admin party - Contain the admin privileges and alter the information.
  • Basic Authentications - Permits us to make a new database credentials.
  • Cookie authentications - Utilize HTML forms for performing the login operations.