HOW TO ADD A NEW SECURITY TEST INTO SAM

The Required Files

For each new security test intended to be used by SAM, you must provide two files:
  • a file describing the test
  • the test script

A file describing the test

File Naming Convention:

You should call this file in the format < sensor name >-< test name >.def, where < sensor name > is the service type your script will test:

ArcCE, BDII, CE, FTS, LFC, MyProxy, RB, RGMA, SE, SRM, SRMv2, VOBOX, VOMS, gCE, gRB, sBDII

An example would be: CE-wn-sec-crl.def

Structure:

Inside this file you must specify the:

testName: <sensor name>-<test name>
testTitle: <a short line describing the test>
testAbbr: <an abbreviation name>
testHelp: <a URL pointing to the documentation>
EOT

Note that you should end the file with a single line having EOT

An example of this file would be:

testName: CE-wn-sec-crl
testTitle: CRLs validity on WN
testAbbr: crl
testHelp: http://grid.cyfronet.pl/sam-doc/CE/CE-wn-sec-crl.html
EOT

The test script

File Naming Convention:

As explained before, call this file in the format < sensor name >-< test name >

Example: CE-wn-sec-crl

Test Output:

When executing the test, it must create a file called < sensor name >-< test name >.result

This file must have this structure:

voName: <the VO executing the test>
envName: <sensor name>-<execution time in UTS format>
testName: <the file name of your test>
nodeName: <the service endpoint (host) tested>
timestamp: <execution time of the test in UTS format>
status: <of the test: '0' for UNKNOWN, '10' for OK, '40' for WARNING or '60' for CRITICAL>
detailedData: EOT
<br>
Here you can put the detailed result of the test <br>
in HTML compatible format<br>
<br>
EOT

An example of this output file could be:

voName: OPS
envName: CE-1160731486
testName: CE-wn-sec-crl
nodeName: ce101.cern.ch
timestamp: 1160731487
status: 10
detailedData: EOT
<pre>
blablabla... [OK]
</pre>
EOT

Encription of sensible data

To be done...

Where to submit your new tests

One you have the two files, send them by email to: same-devel@cernNOSPAMPLEASE.ch


-- RomainWartel - 03 Sep 2007

Edit | Attach | Watch | Print version | History: r7 | r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r3 - 2007-09-14 - DavidCollados
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LCG All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback