Skip to content

Commit bec4c78

Browse files
authored
DXE-4394 Merge pull request #72 from akamai/release/v2.0.2
Release/v2.0.2
2 parents f9e789b + 9015b2b commit bec4c78

File tree

9 files changed

+41
-83
lines changed

9 files changed

+41
-83
lines changed

CHANGELOG.md

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,36 @@
11
# RELEASE NOTES
22

3-
## 2.0.1 (June 18, 2024)
3+
## 2.0.2 (Dec 10, 2024)
44

5-
#### FEATURES/ENHANCEMENTS:
5+
### FEATURES/ENHANCEMENTS:
66

7-
* Updated various dependencies
7+
* Modified code to use `yaml.SafeLoader` to improve security when loading `yaml` configuration files.
8+
* Updated various dependencies.
89

9-
## 2.0.0 (January 18, 2023)
10+
## 2.0.1 (Jun 18, 2024)
1011

11-
#### BREAKING CHANGES:
12+
### FEATURES/ENHANCEMENTS:
1213

13-
* Default section is now `default`, was `cps`
14-
* Update to v11 for:
14+
* Updated various dependencies.
15+
16+
## 2.0.0 (Jan 18, 2023)
17+
18+
### BREAKING CHANGES:
19+
20+
* Changed default section from `cps` to `default`.
21+
* Updated to v11 for:
1522
* create, update enrollment API call
1623
* accept to get enrollments
1724

18-
#### BUG FIXES:
25+
### FEATURES/ENHANCEMENTS:
1926

20-
* Fix case when listing enrollments didn't show updates on enrollment after having it cached
21-
* Fix non recognizing `accountkey` option ([#48](https://github.com/akamai/cli-cps/issues/48))
27+
* Added support for arm64.
28+
* Updated various dependencies.
29+
* Third party cert: modified `status` to show both ecsda and rsa csr.
30+
* Third party cert: modified `proceed` to allow upload of signed ecdsa or rsa.
31+
* Added support for `--force-renewal` (optional) argument for updates.
2232

23-
#### FEATURES/ENHANCEMENTS:
33+
### BUG FIXES:
2434

25-
* Added support for arm64
26-
* Updated various dependencies
27-
* Third party cert: status shows both ecsda and rsa csr
28-
* Third party cert: proceed allows upload of signed ecdsa or rsa
29-
* Update allows for --force-renewal (optional) argument
35+
* Fixed a case when listing enrollments didn't show updates on enrollment after having it cached.
36+
* Fixed a non-recognizing `accountkey` option ([#48](https://github.com/akamai/cli-cps/issues/48)).

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright {yyyy} {name of copyright owner}
189+
Copyright 2024 Akamai Technologies, Inc. All rights reserved.
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192-
you may not use this file except in compliance with the License.
192+
you may not use these files except in compliance with the License.
193193
You may obtain a copy of the License at
194194

195195
http://www.apache.org/licenses/LICENSE-2.0

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,14 @@ The flags of interest for delete are (please specify either --cn or --enrollment
243243
--enrollment-id <value> Enrollment id
244244
```
245245
246-
# Contribution
246+
## Contribution
247247
248248
By submitting a contribution (the “Contribution”) to this project, and for good and valuable consideration, the receipt and sufficiency of which are hereby acknowledged, you (the “Assignor”) irrevocably convey, transfer, and assign the Contribution to the owner of the repository (the “Assignee”), and the Assignee hereby accepts, all of your right, title, and interest in and to the Contribution along with all associated copyrights, copyright registrations, and/or applications for registration and all issuances, extensions and renewals thereof (collectively, the “Assigned Copyrights”). You also assign all of your rights of any kind whatsoever accruing under the Assigned Copyrights provided by applicable law of any jurisdiction, by international treaties and conventions and otherwise throughout the world.
249249
250-
# Notice
250+
## License
251251
252-
Copyright 2020 – Akamai Technologies, Inc.
253-
254-
All works contained in this repository, excepting those explicitly otherwise labeled, are the property of Akamai Technologies, Inc.
252+
Copyright 2024 Akamai Technologies, Inc. All rights reserved.
253+
254+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
255+
256+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

bin/akamai-cps

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
"""
2-
Copyright 2017 Akamai Technologies, Inc. All Rights Reserved.
3-
Licensed under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
http://www.apache.org/licenses/LICENSE-2.0
7-
Unless required by applicable law or agreed to in writing, software
8-
distributed under the License is distributed on an "AS IS" BASIS,
9-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10-
See the License for the specific language governing permissions and
11-
limitations under the License.
12-
"""
13-
141
"""
152
This code leverages akamai OPEN API. to control Certificates deployed in Akamai Network.
163
In case you need quick explanation contact the initiators.

bin/cps.py

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
"""
2-
Copyright 2017 Akamai Technologies, Inc. All Rights Reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
http://www.apache.org/licenses/LICENSE-2.0
8-
Unless required by applicable law or agreed to in writing, software
9-
distributed under the License is distributed on an "AS IS" BASIS,
10-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11-
See the License for the specific language governing permissions and
12-
limitations under the License.
13-
"""
14-
151
"""
162
This code leverages akamai OPEN API. to control Certificates deployed in Akamai Network.
173
In case you need quick explanation contact the initiators.
@@ -36,7 +22,7 @@
3622
from cpsApiWrapper import cps
3723
from headers import headers
3824

39-
PACKAGE_VERSION = "2.0.1"
25+
PACKAGE_VERSION = "2.0.2"
4026

4127
# Setup logging
4228
if not os.path.exists('logs'):
@@ -1464,9 +1450,9 @@ def create(args):
14641450
exit(0)
14651451

14661452
if filePath.endswith('.yml') or filePath.endswith('.yaml'):
1467-
jsonFormattedContent = yaml.load(file_content, yaml.Loader)
1468-
updateJsonContent = json.dumps(yaml.load(file_content, yaml.Loader), indent=2)
1469-
certificateContent = yaml.load(file_content, yaml.Loader)
1453+
jsonFormattedContent = yaml.load(file_content, yaml.SafeLoader)
1454+
updateJsonContent = json.dumps(yaml.load(file_content, yaml.SafeLoader), indent=2)
1455+
certificateContent = yaml.load(file_content, yaml.SafeLoader)
14701456
elif filePath.endswith('.json'):
14711457
jsonFormattedContent = json.loads(file_content)
14721458
updateJsonContent = json.dumps(jsonFormattedContent, indent=2)
@@ -1572,10 +1558,10 @@ def update(args):
15721558
exit(0)
15731559

15741560
if fileName.endswith('.yml') or fileName.endswith('.yaml'):
1575-
jsonFormattedContent = yaml.load(file_content, yaml.Loader)
1561+
jsonFormattedContent = yaml.load(file_content, yaml.SafeLoader)
15761562
updateJsonContent = json.dumps(
1577-
yaml.load(file_content, yaml.Loader), indent=2)
1578-
certificateContent = yaml.load(file_content, yaml.Loader)
1563+
yaml.load(file_content, yaml.SafeLoader), indent=2)
1564+
certificateContent = yaml.load(file_content, yaml.SafeLoader)
15791565
elif fileName.endswith('.json'):
15801566
jsonFormattedContent = json.loads(file_content)
15811567
updateJsonContent = json.dumps(jsonFormattedContent, indent=2)

bin/cpsApiWrapper.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
""" Copyright 2017 Akamai Technologies, Inc. All Rights Reserved.
2-
Licensed under the Apache License, Version 2.0 (the "License");
3-
you may not use this file except in compliance with the License.
4-
You may obtain a copy of the License at
5-
http://www.apache.org/licenses/LICENSE-2.0
6-
Unless required by applicable law or agreed to in writing, software
7-
distributed under the License is distributed on an "AS IS" BASIS,
8-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
See the License for the specific language governing permissions and
10-
limitations under the License.
11-
"""
12-
131
import json
142
from cryptography import x509
153
from cryptography.hazmat.backends import default_backend

bin/headers.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
""" Copyright 2017 Akamai Technologies, Inc. All Rights Reserved.
2-
Licensed under the Apache License, Version 2.0 (the "License");
3-
you may not use this file except in compliance with the License.
4-
You may obtain a copy of the License at
5-
http://www.apache.org/licenses/LICENSE-2.0
6-
Unless required by applicable law or agreed to in writing, software
7-
distributed under the License is distributed on an "AS IS" BASIS,
8-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9-
See the License for the specific language governing permissions and
10-
limitations under the License.
11-
"""
12-
131
class headers(object):
142
def __init__(self):
153
self.data = {

cli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"name": "cps",
88
"aliases": ["certs"],
9-
"version": "2.0.1",
9+
"version": "2.0.2",
1010
"description": "Access Certificate Provisioning System (CPS) Information"
1111
}
1212
]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
edgegrid-python==1.3.1
1+
edgegrid-python==2.0.0
22
requests==2.32.3
33
prettytable==3.10.0
44
cryptography==43.0.1

0 commit comments

Comments
 (0)