Commit Graph

3685 Commits

Author SHA1 Message Date
Ashley Gould
30a9aa33e5 organizations: endpoint list_parents now support account_id param
refactered classes: FakeRoot inherits from FakeOrganizationsUnit
add root_id attribute to class FakeOrganization
dropped 'roots' attribute from class OrganizationaBackend
2018-09-28 08:34:18 -07:00
Ashley Gould
9b5c6c4f0f organizations.model.FakeAccount: rename attributes:
account_id -> id
account_name -> name
2018-09-28 08:34:18 -07:00
Ashley Gould
009dcdb21a organizations: and another 2 endpoints:
list_accounts_for_parent
move_account
2018-09-28 08:34:18 -07:00
Ashley Gould
fc2447c6a4 organiziaions: 2 new endpoints:
list_organizational_units_for_parents
list_parents
2018-09-28 08:34:18 -07:00
Ashley Gould
beebb9abc8 organizations: add 2 more endpoints
create_organizational_unit
describe_organizational_unit
2018-09-28 08:34:18 -07:00
Ashley Gould
6c0c6148f1 organizations: add endpoint list_roots 2018-09-28 08:34:18 -07:00
Ashley Gould
c40d2be646 organizations: clean up for flake8 2018-09-28 08:34:18 -07:00
Ashley Gould
f20898da0e add info on organizations support to docs 2018-09-28 08:34:18 -07:00
Ashley Gould
edbc57e00d add support for AWS Organizations
endpoints covers so far:
- create_organization
- describe_organization
- create_account
- describe_account
- list_accounts

all tests passing.
could use some advise from maintaners.
2018-09-28 08:34:18 -07:00
Ferruvich
da76ea633b Removed redundand line 2018-09-28 16:31:57 +02:00
Ferruvich
b9022fb189 Merge branch 'add_extra_attributes_in_token_payload' of github.com:ferruvich/moto into add_extra_attributes_in_token_payload 2018-09-28 16:28:21 +02:00
Ferruvich
e69d2834e8 Removing failing test in order to check coverage and Travis test 2018-09-28 16:26:03 +02:00
Ferruvich
c2b8a7bbb0 Added package dependency 2018-09-28 16:26:03 +02:00
Ferruvich
9adb7c818d Added extra test 2018-09-28 16:26:03 +02:00
Ferruvich
ab8f4dd159 Testing new feature 2018-09-28 16:26:03 +02:00
Ferruvich
2253bbf361 Changed the 'create_access_token' function in order to add the extra data into 'create_jwt' function 2018-09-28 16:26:03 +02:00
Daniele Stefano Ferru
9c8ecf6ee7
Merge pull request #4 from spulec/master
Updating
2018-09-28 15:07:20 +02:00
Steve Pulec
dfa7935e13
Merge pull request #1840 from justineyster/fix/crypto_vulnerability
Addresses security vulnerability in cryptography<2.3
2018-09-24 22:25:29 -04:00
Justin Eyster
8bdcc6244d Addresses security vulnerability in cryptography<2.3
Discovered using pipenv's security check feature that there's a vulnerability in the cryptography package versions<2.3.

> Checking installed package safety...
36351: cryptography >=1.9.0,<2.3 resolved (2.2.2 installed)!
python-cryptography versions >=1.9.0 and <2.3 did not enforce a minimum tag length for finalize_with_tag API. If a user did not validate the input length prior to passing it to finalize_with_tag an attacker could craft an invalid payload with a shortened tag (e.g. 1 byte) such that they would have a 1 in 256 chance of passing the MAC check. GCM tag forgeries can cause key leakage.

More details here: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-10903
2018-09-24 16:09:12 -04:00
Steve Pulec
57f9691a52 Version 1.3.6 2018-09-22 17:28:49 -04:00
Steve Pulec
2abbecee71
Merge pull request #1774 from chrisLeeTW/cloudwatch-sequenceToken-hotfix
nextSequenceToken that return by cloudwatch logs putLogEvents should be string, not int.
2018-09-22 17:16:53 -04:00
Steve Pulec
c035348ae4
Merge pull request #1759 from kgutwin/iam_get_policy
Implement IAM get_policy and correct policy version behavior
2018-09-22 16:59:07 -04:00
Steve Pulec
65570d0f6d
Merge pull request #1739 from r1b/fix-mailbox-parsing
bugfix: support name-addr mailbox form
2018-09-22 16:57:58 -04:00
Steve Pulec
6aa753af6f
Merge pull request #1745 from cm-iwata/fix_upditem_with_emptystring
BugFix dynamodb2 update_item with empty string Fixes#1744
2018-09-22 16:57:10 -04:00
Steve Pulec
1d9c19de44
Merge pull request #1838 from jrbeilke/feature-CopyTagsToSnapshot
Update RDS/RDS2 to support CopyTagsToSnapshot and get tagging working with snapshots
2018-09-22 16:51:33 -04:00
Steve Pulec
74b7634b95
Merge pull request #1733 from yan12125/py37
Python 3.7 support
2018-09-22 16:50:50 -04:00
Steve Pulec
0ab07bc482
Merge pull request #1763 from nate/fix/receive_message_wait_time_seconds
Force receive_message_wait_time_seconds to be int
2018-09-22 16:49:24 -04:00
Steve Pulec
6c8963b9a7
Merge pull request #1837 from ogckw/master
Fix #1830 Add support for cross-region VPC peering
2018-09-22 16:42:14 -04:00
Steve Pulec
693c677b87
Merge pull request #1687 from sthuber90/master
Fix ECR and bug fixes
2018-09-22 16:40:33 -04:00
Steve Pulec
ec2b278fc8
Merge pull request #1765 from nate/fix/double-create-queue-with-redrive-policy
Don't error on double create queue with same attrs
2018-09-22 16:36:35 -04:00
Steve Pulec
f071a9cf4f
Merge pull request #1768 from nimbis/ssm-backend-get-command-invocation-upstream
Ssm backend get command invocation upstream
2018-09-22 16:34:37 -04:00
Steve Pulec
793e520c90
Merge pull request #1746 from Brett55/master
- Updated ResourceAlreadyExistsException(LogsClientError) to latest msg
2018-09-22 16:30:56 -04:00
Steve Pulec
7e95698adf
Merge pull request #1777 from madarve/master
ECS: Added schedulingStrategy support
2018-09-22 16:24:56 -04:00
Steve Pulec
2d978aa1c9
Merge pull request #1782 from NeilRoberts/Moto-1781_add_rotate_secret_to_secretsmanager
Issue# 1781 implement secretsmanager.RotateSecret
2018-09-22 16:21:31 -04:00
Steve Pulec
d3b5cea22a
Merge pull request #1806 from joseluisdiaz/return-moto-api-backend
Return given host for 'moto-api'
2018-09-22 16:20:22 -04:00
Steve Pulec
4bb4c96efa
Merge pull request #1821 from Jtupiter/multiple-delete-marker
Fix #1820: Add support for multiple delete markers on an s3 object
2018-09-22 16:16:08 -04:00
Steve Pulec
f3cc02002c
Merge pull request #1751 from Destygo/topic/add_unknown_state_to_elb_unregistered_instances
Add support for unregistered instances in ELB DescribeInstancesHealth.
2018-09-22 16:11:31 -04:00
Steve Pulec
90de7fc0d2
Merge pull request #1789 from bpandola/fix-1778
Add `ClusterCreateTime` to Redshift response
2018-09-22 16:08:38 -04:00
Steve Pulec
afdda39fc4
Merge pull request #1810 from OJFord/fix-1809
Fix #1809: skip patching staticmethods
2018-09-22 15:57:38 -04:00
Steve Pulec
6d3673f284
Merge pull request #1817 from justinm/aws-partition-in-cloudfront
Add AWS::Partition as a variable available to CloudFormation templates
2018-09-22 15:55:56 -04:00
Steve Pulec
626113351d
Merge pull request #1835 from dhuang/remove-cookies-dep
Remove unused cookies dependency
2018-09-22 15:42:51 -04:00
Steve Pulec
11184d188f
Merge pull request #1801 from meneal/fix/mismatch
Fix botocore/boto3 dependency version mismatch
2018-09-22 15:13:47 -04:00
Jon Beilke
67a0e06059 allow for adding and removing tags on rds snapshots 2018-09-21 13:54:07 -05:00
Jon Beilke
245e3a5f71 formatting fix for E111 indentation is not a multiple of four 2018-09-21 13:33:10 -05:00
Jon Beilke
7daee905a5 remove merge_taglists as AWS will only take submitted tags or tags from db but not both when creating snapshot 2018-09-21 13:28:13 -05:00
Jon Beilke
6eb490ac78 add support for tags to rds snapshots 2018-09-21 12:03:13 -05:00
Jon Beilke
1b8b32a663 add CopyTagsToSnapshot to db_kwargs 2018-09-21 11:13:33 -05:00
Jon Beilke
1729681106 formatting fix for E231 missing whitespace after : 2018-09-21 10:45:22 -05:00
Jon Beilke
276da06168 added new merge_taglists() to moto.core.utils for merging lists of tags with precedence (ie. during rds2.create_snapshot) 2018-09-21 10:39:42 -05:00
hans
cedb89dc3b Fix #1830 Add support for cross-region VPC peering
Add a class level store in models/VPCBackend of ec2
for saving vpcs of all regions info. Any instance can correctly find vpc in another region
when connecting vpc of cross-region or vpc of same region.

Modify vpc_peering_connections in ec2/responses to handle
vpc peering of same region or cross region.

Update vpc_peering_connections response
template content to latest (2016-11-15) .

Add vpc cross region peering successful test case.
Add vpc cross region peering fail test case.

Related: https://github.com/spulec/moto/issues/1830

Reference
CreateVpcPeeringConnection Sample Response
https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVpcPeeringConnection.html
2018-09-21 23:29:04 +08:00