Commit Graph
258 Commits
Author SHA1 Message Date
Ruben S. Montero e83994bb47 Feature #4714: Add expired token collector 2016-09-08 12:03:24 +02:00
Ruben S. Montero 9bbeb7f608 feature #4714: tabs... 2016-09-01 18:06:34 +02:00
Carlos Martín 83cea06e95 Feature #4714: Fix const iterator 2016-09-01 18:04:54 +02:00
Ruben S. Montero 94d9a0e35f feature #4714: Fix inicialization of auth driver variable 2016-09-01 14:58:37 +02:00
Ruben S. Montero 2e0cd9509f feature #4714: Check EGID as stored in the token is still a valid group for the user. 2016-08-31 18:24:15 +02:00
Ruben S. Montero 27c5a7ea48 feature #4714: Add multiple authentication tokens per user. Tokens are
extended to include an efective gid, used for object creation and
authorization (when using the token).
2016-08-31 14:52:33 +02:00
Carlos Martín a3e99f538f Feature #4715: Update group IDs when auth diver provides them 2016-08-23 14:48:45 +02:00
Javi Fontan e1f6dee180 Update copyright notice year 2016-05-04 12:33:23 +02:00
Carlos Martín 82892ad70f Merge remote-tracking branch 'origin/master' into feature-4369 2016-03-17 18:22:51 +01:00
Carlos Martín eff51a0dea Feature #4369: Use ObjectCollection::from_xml instead of from_xml_node 2016-03-17 18:17:37 +01:00
Ruben S. Montero bdbca69a2d feature #4217:This commit includes the following changes to decouple the
DB access and marketplace control from master and slave zones:
  * Client class is singleton as required by xmlrpc-c
  * one_auth initialization moved to a comon location
  * MarketPlaceApp and MarketPlace actions are performed in the same zone as
the associated marketplace.
  * Adds three new api calls updateDB, dropDB and allocateDB to perform
low level DB operations. These methods are exposed for Market y
MarketApps
  * Forward operations are abstarct by Pool classes
  * Apps and markets now includes a ZONE_ID
2016-03-10 17:24:28 +01:00
Ruben S. Montero 6004270685 feature #4162: Sanitize some user attributes in XML douments 2016-03-03 12:32:36 +01:00
Ruben S. Montero 9e4af1ebc6 feature #3204: Security Group dynamic update. Add support to update SG
rules of running VMs though a new one.secgroup.commit operation
2016-03-01 23:31:31 +01:00
Ruben S. Montero 6a0b71e9dd feature #4217: Adapt Marketplace classes to new Template interfaces 2016-02-05 00:55:24 +01:00
Ruben S. Montero 5761be4d10 feature #4217: Simplify Template, Attribute and PoolObjectSQL class interfaces 2016-02-05 00:33:37 +01:00
Ruben S. Montero c9dd78ce85 feature #4215: Add decorator interface for Quota class. Implement a
Virtual Router decorator for QuotaNetwork
2016-02-05 00:31:50 +01:00
Ruben S. Montero b01e2336c5 Merge branch 'feature-4215' into feature-4217 2016-02-02 14:17:20 +01:00
Carlos Martín 68a0184ed2 Feature #4215: Implement auth & quotas for all VR actions 2016-02-01 17:07:04 +01:00
Ruben S. Montero e958ed3c2d feature - : Remove unused update methods 2015-12-10 15:39:23 +01:00
Ruben S. Montero 6bcc97bd08 bug #4022: Do not set snapshots on persistent images if its TM ln mode
is SYSTEM. Update quota update and snapshot survival after delete
--recreate according to:

 +--------+-------------------------------------+
 |LN/CLONE|     PERSISTENT    |   NO PERSISTENT |
 |        |---------+---------+-----------------+
 | TARGET | created |  quota  | created | quota |
 +--------+---------+---------+-----------------+
 | SYSTEM | system  | VM + DS | system  | VM    |
 | SELF   | image   | DS      | image   | DS    |
 | NONE   | image   | DS      | image   | DS    |
 +----------------------------------------------+

Snapshots created at system ds (LN_TARGET/TM_TARGET) will be deleted
after a recreate.

(cherry picked from commit c5ad05fc60680cda2763973f5079598c2bf166e7)
2015-11-13 01:40:16 +01:00
Ruben S. Montero 1b9919435e bug #4022: Removes snapshots from non-shared persistent disks. Update
Datastore Quota management to deal with bulk updates. Hook on DM & LCM
resubmit and clean_up_vm to remove snapshots

(cherry picked from commit 6f02a240ec8f4be7ef232e8f8c584665e6747233)
2015-11-13 01:40:16 +01:00
Jaime Melis e20fb5c4c4 Fix copyright in banners 2015-09-23 16:51:10 +02:00
Carlos Martín 6e3e25ff59 Feature #1727: Rename VOLATILE_SIZE quota to SYSTEM_DISK_SIZE 2015-07-21 11:10:57 +02:00
Carlos Martín 2c2fa83028 Feature #1727: VM volatile quota adds each disk size 2015-07-20 15:46:57 +02:00
Javi Fontan 4b08d76fbf Whitespace cleanup 2015-07-01 15:18:28 -04:00
Ruben S. Montero a2e49d4264 feature #3782: Snapshots do not increment IMAGE counter in datastore for
persistent images
2015-06-18 12:30:25 +02:00
Jaime Melis d89ba1692a Feature #3650: Use NebulaTemplate to set the
default value of DEFAULT_AUTH
2015-05-26 15:25:51 +02:00
Jaime Melis aa43470233 Feature #3650: Specify the default auth driver in oned.conf 2015-05-26 15:11:49 +02:00
Ruben S. Montero 0d43d9daac bug #3725: Init oneadmin_name for federation slaves
(cherry picked from commit 849cb757bf)
2015-03-30 13:37:34 +02:00
Ruben S. Montero 233ce7b0ba bug #3704: session tokens are correctly stored
(cherry picked from commit db6be6454c)
2015-03-21 17:24:59 +01:00
Jaime Melis 8d00b74177 Change year to 2015 2015-02-24 12:27:59 +01:00
Ruben S. Montero 61da79ee40 feature #3157: Do not remove existing auth files 2015-01-30 20:58:00 +01:00
Carlos Martín 8198887ca2 Feature #3264: Move float_to_str to NebulaUtil 2014-11-06 18:27:17 +01:00
Ruben S. Montero cc1dc8cb70 Custom format string to log xml-rpc calls 2014-10-28 18:52:48 +01:00
Ruben S. Montero b0cee246a7 feature #2796: Support for not-expiring tokens 2014-09-24 16:44:50 +02:00
Ruben S. Montero 0f44677325 feature #2796: Client side utilities to manage tokens: Ruby OCA, oneuser CLI. Also the token management across drivers (SSH & X509 included) is now homogenous 2014-09-06 22:22:40 +02:00
Ruben S. Montero 91e15fb377 feature #2796: Add login token to User object, the LoginToken is persistent 2014-09-03 17:15:13 +02:00
Ruben S. Montero 75889814f1 feature #2796: Add LoginToken class to abstract token management both for sessions and tokens 2014-09-03 14:10:45 +02:00
Ruben S. Montero b752dd6dfb feature #3159: Added comments and replace rollback code 2014-09-03 11:57:20 +02:00
Carlos Martín 9c0f2bd86a Feature #3159: Core gets group IDs from external auth drivers 2014-09-01 17:26:13 +02:00
Carlos Martín 1b668757fe Feature #2964: unlimited quota is now -2, in core 2014-07-03 12:16:29 +02:00
Ruben S. Montero 88987631d9 feature #2858: Add umask to Request attributes 2014-05-27 12:58:46 +02:00
Ruben S. Montero 3b4e1a89e4 bug #2794: Init oneadmin_name in UserPool() 2014-03-23 21:09:38 +01:00
Carlos Martín 2e8dc65fd6 Bug #2503: Add rollback in case of error 2014-03-04 17:09:04 +01:00
JensHoffmann 0a3ba8aca9 Bug #2503: Improve setting of password/auth_driver
UserChangePassword followed this strategy:
  a1. Eventually encrypt user password if the users
      auth_driver is CORE_AUTH
  a2. Set (probably encrypted) password with
      User::set_password
  a3. User::set_password tries to validate (probably
      encrypted) password instead of the raw password

UserChangeAuth did something similar:
  b1. If password is given (not empty) do a1 through a3
  b2. Set auth_driver

The change proposes the following:
 * In set_password:
    1. Validate the raw password
    2. Do encryption if needed
 * In UserChangePassword: simply call set_password
 * In UserChangeAuth: set auth_driver *before* calling
   set_password, such that set_password does the right thing
   if the auth_driver changes

Note: I needed to move the implementation of set_password
from User.h to User.cc since it seems impossible to access
UserPool::CORE_AUTH from within User.h.
2014-03-04 17:00:11 +01:00
Javi Fontan 03f577bbeb Bump version 2014-03-04 12:53:44 +01:00
Ruben S. Montero 953f11d699 feature #2693: Do not register hooks in federation slaves 2014-02-12 23:03:54 +01:00
Carlos Martín 9b7a1120d5 Feature #2693: A federation slave can now bootstrap the remaining local tables 2014-02-05 19:30:35 +01:00
Carlos Martín c36bc33fd4 Feature #2665: More DB write checks for federation slaves 2014-01-29 13:04:07 +01:00
Carlos Martín 025092f157 Feature #2672: Disable cache for federation slave nodes 2014-01-24 18:27:36 +01:00