cloudstack/server/test/com/cloud
Wido den Hollander 9988c269b2 CLOUDSTACK-7958: Add configuration for limit to CIDRs for Admin API calls (#2046)
* Cleanup and Improve NetUtils

This class had many unused methods, inconsistent names and redundant code.

This commit cleans up code, renames a few methods and constants.

The global/account setting 'api.allowed.source.cidr.list' is set
to 0.0.0.0/0,::/0 by default preserve the current behavior and thus
allow API calls for accounts from all IPv4 and IPv6 subnets.

Users can set it to a comma-separated list of IPv4/IPv6 subnets to
restrict API calls for Admin accounts to certain parts of their network(s).

This is to improve Security. Should an attacker steal the Access/Secret key
of an account he/she still needs to be in a subnet from where accounts are
allowed to perform API calls.

This is a good security measure for APIs which are connected to the public internet.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
2018-01-04 10:56:30 +05:30
..
alert Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
api CLOUDSTACK-7958: Add configuration for limit to CIDRs for Admin API calls (#2046) 2018-01-04 10:56:30 +05:30
capacity All Checkstyle problems corrected 2013-12-12 12:26:07 -08:00
configuration CLOUDSTACK-10168: VR duplicate entries in /etc/hosts when reusing VM name (#2366) 2017-12-20 23:19:12 +05:30
consoleproxy Refactor console proxy default network retrieval. 2016-03-31 10:41:43 +00:00
event rats 2015-11-28 21:20:07 +01:00
ha CLOUDSTACK-9350: KVM-HA- Fix CheckOnHost for Local storage 2016-04-29 12:38:33 +05:30
keystore Reformatted all of the code. 2013-11-21 06:15:26 -08:00
metadata Resource metadata: by default, all metadata is set with display=true (meaning that the detail is avaialble for display to the regular user). If admin wants to set a specific detail to be false, he has to specify it explicitly in addResourceDetail command 2014-02-10 12:05:59 -08:00
network CLOUDSTACK-10189: Adding nuage VSD managed network support to CloudStack (#2360) 2017-12-28 14:55:15 +05:30
projects Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
resource CLOUDSTACK-8865: Adding SR doesn't create Storage_pool_host_ref entry for disabled host (#876) 2017-09-21 10:49:11 +05:30
resourcelimit Reformatted all of the code. 2013-11-21 06:15:26 -08:00
server CLOUDSTACK-9993: Securing Agents Communications (#2239) 2017-08-28 12:15:11 +02:00
servlet CLOUDSTACK-10012: Migrate to Embedded Jetty 2017-11-03 23:57:25 +05:30
snapshot All Checkstyle problems corrected 2013-12-12 12:26:07 -08:00
storage This feature separates the snapshot creation on primary and its backing up on secondary. 2017-10-04 14:39:03 +05:30
template CLOUDSTACK-9700: Allow user to Register/Copy templates to multiple zones at the same time 2017-05-15 14:07:22 +05:30
user CLOUDSTACK-10121 moveUser (#2301) 2017-12-30 11:40:14 +00:00
vm CLOUDSTACK-9593: userdata: enforce data is a multiple of 4 characters (#1760) 2017-12-28 15:27:33 +05:30
vpc CLOUDSTACK-9602: Improve resource limits comprehension in listResources (#1554) 2017-12-28 15:46:24 +05:30