Commit Graph

47 Commits

Author SHA1 Message Date
Mike Grima
7e68b93091
Merge pull request #2601 from mwaaas/fix/get_policy
adding get policy endpoint
2019-12-09 14:11:50 -08:00
mwas
625f28c882 adding get policy endpoint 2019-11-26 06:09:24 +03:00
mwas
0e825a5048 lint 2019-11-23 13:02:00 +03:00
mwas
66c9d15ca8 fixing fetching secret id with both arn and name 2019-11-23 12:37:30 +03:00
mwas
5274ffa5e0 fix both get and describe with arn and name 2019-11-23 10:12:31 +03:00
mwas
b31f31d214 fixing fetch secret manager via arn 2019-11-23 09:29:30 +03:00
Alexander Campbell
7e468287a0 Match AWS's change from smart-quote to ASCII quote 2019-11-12 10:05:11 +11:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
Alexander Campbell
30853a0b5c Use specialised exception for "secret has no value" scenario 2019-10-18 12:06:12 +11:00
Alexander Campbell
6120a60263 Use escape sequence to express non-ASCII character 2019-10-18 10:17:49 +11:00
Alexander Campbell
4eb921480e Use specific exception to prevent repetition 2019-10-18 10:17:45 +11:00
Alexander Campbell
9a54cea4f1 Work around python2 unicode exception str() issues 2019-10-16 14:44:41 +11:00
Alexander Campbell
d74f9e47c8 Add coding hint for python2 compatibility 2019-10-16 12:44:30 +11:00
Alexander Campbell
9d6a1ca81d Fix slightly incorrect message for some errors 2019-10-16 10:58:59 +11:00
Alexander Campbell
381e7b165f Raise appropriate error when secret exists but has no value 2019-10-16 10:55:03 +11:00
Bert Blommers
e8d60435fe #2366 - SecretsManager - put_secret_value should support binary values 2019-08-23 10:57:15 +01:00
A
2386d47fe3 SecretsManager secret value binary support (#2222) 2019-05-28 16:32:43 +01:00
Justin Kieber-King
bbd7fefb37 Feature: Secrets Manager put_secret_value and list_secret_version_ids (#2116)
* initial work

- adding put_secret_value and list_secret_versions

* Added support for versions in all functions except rotate_secret

* more work

- refactor rotate_secret method
  - now, adds a new version of the secret and points default version id to it
- updated implementation coverage readme
- element in list check to fix unit test
- fixed linting errors
- added tests, fixed exception, failing tests still
- secrets_manager/test_server fails when running whole suite,
  but not when running that individual test file

* fixed failing test_get_secret_value

* Removed test.py. Fixed condition statement.

* fixed default stages + adding AWSPREVIOUS

* remove old AWSPREVIOUS stages
2019-05-22 10:45:22 +01:00
Christopher Kilding
55fe629112 Feature: Secrets Manager restore-secret 2019-04-24 10:03:04 +01:00
Chris Kilding
97d31e9aa5 Fix flake8 2019-04-18 16:53:27 +01:00
Chris Kilding
bd8aa341f2 Also throw exception if client tries to RotateSecret on a soft-deleted secret 2019-04-18 16:47:15 +01:00
Chris Kilding
749f4f63e6 Allow soft deletion of secrets 2019-04-18 15:44:48 +01:00
Chris K
fc8cf2d872 Feature: AWS Secrets Manager delete-secret 2019-04-18 10:30:18 +01:00
Chris K
7fcedcb783 Fix: Ensure the returned next_token is None (avoid client going round in a loop) 2019-04-05 15:59:38 +01:00
Chris K
2d6be24ffc Fix lint error 2019-04-05 13:54:11 +01:00
Chris K
89e4ab93ee Implement ListSecrets 2019-04-05 13:33:28 +01:00
Chris K
120874e408 Feature: AWS Secrets Manager list-secrets 2019-04-05 11:00:02 +01:00
zane
08d17a7a13 adding Tags support 2018-12-21 14:04:52 -08:00
zane
b485122ec6 refactor to store multiple scrects, use uuid 2018-10-25 15:16:40 -07:00
Neil Roberts
43277a59b9 Moto-1781: finish implementation of rotate_secret and add happy test.
- Implement RotateSecret to support initial setup of secret rotation.
Moto's implementation of secrets is currently flat and needs to gain
some dimension before full rotation can be simulated.
- Add the happy path unit test.
2018-08-15 11:04:44 -07:00
Neil Roberts
69a78ba7c9 Moto-1781: Create initial stub of rotate_secret and tests. 2018-08-15 10:52:30 -07:00
Neil Roberts
32c32ee5d7 Moto-1781: Implement rotate_secret response. 2018-08-15 10:29:58 -07:00
Neil Roberts
48a71ae329 Issue 1753: Add support for DescribeSecret
- Merge changes from upstream master.
- Update get_secret_value to use helper method for validating secret
identifier.
- Update implementation coverage checklist.
2018-08-14 12:04:39 -07:00
Neil Roberts
1f499971d1 Merge branch 'master' into add_describe_secret_to_secretsmanager 2018-08-14 11:01:47 -07:00
Neil Roberts
92bc3ff910 Issue 1753: Add support for DescribeSecret
- Add helper method to validate the secret identifier from the client.
- Update describe_secret to use new helper method.
- Insert friendly name into "Name" field of returned description (was
SecretId). ***Assumes acceptance of PR 1772.
2018-08-13 12:41:43 -07:00
Neil Roberts
1f3256ed40 Issue 1770: Deal with the friendly name properly
- Save friendly name in create_secret.
- Reference the saved friendly name in responses that have "Name" field.
- Verify the received secret_id matches the current value. Don't just
test for an empty string.
- Add test for mismatched secret_id.
2018-08-10 16:40:31 -07:00
Neil Roberts
b47fc74650 Set correct default auto rotation period. 2018-08-09 18:19:33 -07:00
Neil Roberts
65ef61ca1d Fix linter warning. 2018-08-06 15:54:37 -07:00
Neil Roberts
cce3a678aa Implement secretsmanager.DescribeSecret and tests. 2018-08-06 14:40:33 -07:00
zane
6c7a22c7d7 Added get_random_password mock with tests 2018-07-18 00:27:53 -07:00
Zane Williamson
ba1ceee95f Adding create_secret, exception handle, fix (#1680) 2018-07-14 08:39:19 +01:00
zane
c6387504bc Update flake 2018-06-10 00:23:10 -07:00
zane
b1a8ae8299 Updating tests 2018-06-09 23:42:33 -07:00
zane
8ee7a9495d UPdate 2018-06-09 22:08:10 -07:00
zane
6e893ff055 Adding response, urls and test 2018-06-07 22:31:44 -07:00
zane
99bbe6b86a Adding models with get_secret_vaule function 2018-06-07 22:07:20 -07:00
zane
a601cbf809 Initial commit 2018-06-05 22:11:00 -07:00