Package expedient :: Package clearinghouse :: Package defaultsettings :: Module gcf
[hide private]
[frames] | no frames]

Source Code for Module expedient.clearinghouse.defaultsettings.gcf

 1  '''Settings for interacting with GENI Control Framework aggregates. 
 2   
 3  Created on Aug 19, 2010 
 4   
 5  @author: jnaous 
 6  ''' 
 7  from os.path import join 
 8  from django import CONF_DIR 
 9   
10  try: 
11      from localsettings import * 
12  except ImportError: 
13      pass 
14   
15  GCF_BASE_NAME = "stanford//expedient" 
16  '''The domain name used in URNs when creating certificates mainly. 
17   
18  You will need to override this for your deployment to change "stanford" 
19  to your site's name. 
20   
21  This must not have any spaces or illegal characters not allowed in 
22  URNs or you will get cryptic errors. 
23   
24  This should look something like "stanford//expedient" 
25   
26  ''' 
27   
28  GCF_URN_AM_SUFFIX = "authority+am" 
29  '''The suffix of the GCF AM URN. 
30   
31  This gets appended to the URN prefix obtained from the L{GCF_BASE_NAME}. 
32  Default (and required by convention) is "authority+am". 
33   
34  ''' 
35   
36  # Location of GENI x509 certs and keys 
37  GCF_X509_TRUSTED_CERT_DIR = join(CONF_DIR, "gcf-x509-trusted.crt") 
38  '''The location of trusted root certificates used by expedient for the GCF.''' 
39   
40  GCF_X509_USER_CERT_DIR = join(CONF_DIR, "gcf-x509-user.crt") 
41  '''The location of saved user certificates used by expedient for the GCF.''' 
42   
43  GCF_X509_KEY_DIR = join(CONF_DIR, "gcf-x509.key") 
44  '''The location of keys used by expedient for the GCF.''' 
45   
46  GCF_X509_CRED_DIR = join(CONF_DIR, "gcf-x509.cred") 
47  '''The location of credentials used by expedient for the GCF.''' 
48   
49  try: 
50      from localsettings import * 
51  except ImportError: 
52      pass 
53   
54  GCF_X509_CH_CERT = join(GCF_X509_TRUSTED_CERT_DIR, "ch.crt") 
55  '''The absolute path of the clearinghouse certificate for Expedient.''' 
56   
57  GCF_X509_CH_KEY = join(GCF_X509_KEY_DIR, "ch.key") 
58  '''The absolute path of the clearinghouse key for Expedient.''' 
59   
60  GCF_NULL_SLICE_CRED = join(GCF_X509_CRED_DIR, "ch.cred") 
61  '''The default slice's full credentials.''' 
62   
63  CURRENT_GAPI_VERSION = 1 
64  '''The latest version of the GENI API''' 
65   
66  GCF_X509_USER_CERT_FNAME_PREFIX = "user_x509_" 
67  '''The prefix to prepend to the filenames of saved user certificates.''' 
68   
69  GCF_MAX_UPLOADED_PEM_FILE_SIZE = 1024*1024 
70  '''Maximum size of uploaded certificate or key files in bytes.''' 
71   
72  GCF_SLICE_CRED_LIFE = 360000 
73  '''Slice credential lifetime for credentials generated through the CH API in seconds.''' 
74   
75  GCF_USER_CRED_LIFE = 864000 
76  '''User credential lifetime for credentials generated through the CH API in seconds.''' 
77   
78  GENI_AGGREGATE_UPDATE_PERIOD = 15*60 
79  '''Every how many seconds should a GENIAggregate get updated?''' 
80