~ubuntu-branches/ubuntu/precise/maas/precise-updates

« back to all changes in this revision

Viewing changes to src/provisioningserver/remote.py

Tags: 1.2+bzr1373+dfsg-0ubuntu1~12.04.4
* SECURITY UPDATE: failure to authenticate downloaded content (LP: #1039513)
  - debian/patches/CVE-2013-1058.patch: Authenticate downloaded files with
    GnuPG and MD5SUM files. Thanks to Julian Edwards.
  - CVE-2013-1058
* SECURITY UPDATE: configuration options may be loaded from current working
  directory (LP: #1158425)
  - debian/patches/CVE-2013-1057-1-2.patch: Do not load configuration
    options from the current working directory. Thanks to Julian Edwards.
  - CVE-2013-1057

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2012 Canonical Ltd.  This software is licensed under the
2
 
# GNU Affero General Public License version 3 (see the file LICENSE).
3
 
 
4
 
"""Provisioning API over XML-RPC."""
5
 
 
6
 
from __future__ import (
7
 
    absolute_import,
8
 
    print_function,
9
 
    unicode_literals,
10
 
    )
11
 
 
12
 
__metaclass__ = type
13
 
__all__ = [
14
 
    "ProvisioningAPI_XMLRPC",
15
 
    ]
16
 
 
17
 
from provisioningserver.api import ProvisioningAPI
18
 
from provisioningserver.interfaces import (
19
 
    IProvisioningAPI,
20
 
    IProvisioningAPI_XMLRPC,
21
 
    )
22
 
from provisioningserver.utils import xmlrpc_export
23
 
from twisted.web.xmlrpc import XMLRPC
24
 
from zope.interface import implements
25
 
 
26
 
 
27
 
@xmlrpc_export(IProvisioningAPI)
28
 
class ProvisioningAPI_XMLRPC(XMLRPC, ProvisioningAPI):
29
 
 
30
 
    implements(IProvisioningAPI_XMLRPC)
31
 
 
32
 
    def __init__(self, session):
33
 
        XMLRPC.__init__(self, allowNone=True, useDateTime=True)
34
 
        ProvisioningAPI.__init__(self, session)