signing-tool 3.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- signing_tool-3.6.1/LICENSE +5 -0
- signing_tool-3.6.1/LICENSES/certifi.txt +10 -0
- signing_tool-3.6.1/LICENSES/configparser.txt +24 -0
- signing_tool-3.6.1/LICENSES/cryptography.txt +20 -0
- signing_tool-3.6.1/LICENSES/jwcrypto.txt +18 -0
- signing_tool-3.6.1/LICENSES/python-dateutil.txt +18 -0
- signing_tool-3.6.1/LICENSES/requests.txt +18 -0
- signing_tool-3.6.1/LICENSES/six.txt +24 -0
- signing_tool-3.6.1/LICENSES/urllib3.txt +24 -0
- signing_tool-3.6.1/MANIFEST.in +11 -0
- signing_tool-3.6.1/PKG-INFO +131 -0
- signing_tool-3.6.1/README.md +84 -0
- signing_tool-3.6.1/RELEASE-NOTES.md +61 -0
- signing_tool-3.6.1/pyproject.toml +57 -0
- signing_tool-3.6.1/sbom.json +961 -0
- signing_tool-3.6.1/setup.cfg +4 -0
- signing_tool-3.6.1/signing_tool.egg-info/PKG-INFO +131 -0
- signing_tool-3.6.1/signing_tool.egg-info/SOURCES.txt +49 -0
- signing_tool-3.6.1/signing_tool.egg-info/dependency_links.txt +1 -0
- signing_tool-3.6.1/signing_tool.egg-info/entry_points.txt +3 -0
- signing_tool-3.6.1/signing_tool.egg-info/requires.txt +12 -0
- signing_tool-3.6.1/signing_tool.egg-info/top_level.txt +1 -0
- signing_tool-3.6.1/signingtool/__init__.py +0 -0
- signing_tool-3.6.1/signingtool/apiconfig.py +35 -0
- signing_tool-3.6.1/signingtool/ca.py +121 -0
- signing_tool-3.6.1/signingtool/cli.py +20 -0
- signing_tool-3.6.1/signingtool/client.py +155 -0
- signing_tool-3.6.1/signingtool/config_init.py +77 -0
- signing_tool-3.6.1/signingtool/encrypt.py +91 -0
- signing_tool-3.6.1/signingtool/escrow.py +167 -0
- signing_tool-3.6.1/signingtool/fusemap.py +90 -0
- signing_tool-3.6.1/signingtool/group.py +330 -0
- signing_tool-3.6.1/signingtool/handler.py +323 -0
- signing_tool-3.6.1/signingtool/metadata.py +52 -0
- signing_tool-3.6.1/signingtool/parser_ca.py +74 -0
- signing_tool-3.6.1/signingtool/parser_client.py +74 -0
- signing_tool-3.6.1/signingtool/parser_escrow.py +53 -0
- signing_tool-3.6.1/signingtool/parser_groups.py +47 -0
- signing_tool-3.6.1/signingtool/parser_imagesigning.py +216 -0
- signing_tool-3.6.1/signingtool/parser_product.py +57 -0
- signing_tool-3.6.1/signingtool/parser_production.py +46 -0
- signing_tool-3.6.1/signingtool/parser_profile.py +59 -0
- signing_tool-3.6.1/signingtool/parser_secretsfusemap.py +90 -0
- signing_tool-3.6.1/signingtool/parsers.py +210 -0
- signing_tool-3.6.1/signingtool/product.py +354 -0
- signing_tool-3.6.1/signingtool/production.py +81 -0
- signing_tool-3.6.1/signingtool/profile.py +113 -0
- signing_tool-3.6.1/signingtool/secret.py +252 -0
- signing_tool-3.6.1/signingtool/sign.py +341 -0
- signing_tool-3.6.1/signingtool/state.py +38 -0
- signing_tool-3.6.1/signingtool/version.py +24 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
This product includes software developed by Kenneth Reitz.
|
|
2
|
+
|
|
3
|
+
certifi is available under the Mozilla Public License 2.0 (MPL 2.0)
|
|
4
|
+
https://github.com/certifi/python-certifi
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2017 Kenneth Reitz
|
|
7
|
+
|
|
8
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
|
9
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
10
|
+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
This product includes software developed by Łukasz Langa.
|
|
2
|
+
|
|
3
|
+
configparser is available under the MIT License
|
|
4
|
+
https://github.com/jaraco/configparser
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2011-2021 Łukasz Langa and contributors
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
This product includes software developed by The cryptography project.
|
|
2
|
+
|
|
3
|
+
cryptography is available under the Apache Software License 2.0 and BSD License
|
|
4
|
+
https://github.com/pyca/cryptography
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2013-2021 The cryptography project contributors
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
|
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
See the License for the specific language governing permissions and
|
|
18
|
+
limitations under the License.
|
|
19
|
+
|
|
20
|
+
This product includes cryptographic software written by Eric Young (eay@cryptsoft.com).
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
This product includes software developed by Simo Sorce.
|
|
2
|
+
|
|
3
|
+
jwcrypto is available under the Apache Software License 2.0
|
|
4
|
+
https://github.com/latchset/jwcrypto
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2017 Red Hat, Inc.
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
|
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
See the License for the specific language governing permissions and
|
|
18
|
+
limitations under the License.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
This product includes software developed by Gustavo Niemeyer.
|
|
2
|
+
|
|
3
|
+
python-dateutil is available under the Apache Software License 2.0
|
|
4
|
+
https://github.com/dateutil/dateutil
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2003-2021 - Gustavo Niemeyer <gustavo@niemeyer.com>
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
|
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
See the License for the specific language governing permissions and
|
|
18
|
+
limitations under the License.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
This product includes software developed by Kenneth Reitz.
|
|
2
|
+
|
|
3
|
+
requests is available under the Apache Software License 2.0
|
|
4
|
+
https://github.com/psf/requests
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2011-2021 Kenneth Reitz
|
|
7
|
+
|
|
8
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
you may not use this file except in compliance with the License.
|
|
10
|
+
You may obtain a copy of the License at
|
|
11
|
+
|
|
12
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
|
|
14
|
+
Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
See the License for the specific language governing permissions and
|
|
18
|
+
limitations under the License.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
This product includes software developed by Benjamin Peterson.
|
|
2
|
+
|
|
3
|
+
six is available under the MIT License
|
|
4
|
+
https://github.com/benjaminp/six
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2010-2020 Benjamin Peterson
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
This product includes software developed by Andrey Petrov.
|
|
2
|
+
|
|
3
|
+
urllib3 is available under the MIT License
|
|
4
|
+
https://github.com/urllib3/urllib3
|
|
5
|
+
|
|
6
|
+
Copyright (c) 2008-2021 Andrey Petrov and contributors (see CONTRIBUTORS.txt)
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include RELEASE-NOTES.md
|
|
4
|
+
include sbom.json
|
|
5
|
+
recursive-include LICENSES *
|
|
6
|
+
graft signingtool
|
|
7
|
+
global-exclude __pycache__
|
|
8
|
+
global-exclude *.py[cod]
|
|
9
|
+
global-exclude *.so
|
|
10
|
+
global-exclude *.dylib
|
|
11
|
+
global-exclude *.pyd
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: signing-tool
|
|
3
|
+
Version: 3.6.1
|
|
4
|
+
Summary: Laavat Signing Solution CLI Tool
|
|
5
|
+
Author-email: Laavat Oy <contact@laavat.com>
|
|
6
|
+
License: Copyright (c) 2026 Laavat Oy
|
|
7
|
+
|
|
8
|
+
All rights reserved.
|
|
9
|
+
|
|
10
|
+
This software is the proprietary work of Laavat Oy. Use, reproduction, or distribution of this software, in whole or in part, is prohibited without the express prior written permission of Laavat Oy.
|
|
11
|
+
|
|
12
|
+
Project-URL: Documentation, https://docs.laavat.io/democlient/usage/
|
|
13
|
+
Project-URL: Homepage, https://docs.laavat.io/
|
|
14
|
+
Keywords: signing,cli,pki,certificate,signing-tool,laavat
|
|
15
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: License :: Other/Proprietary License
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Requires-Python: >=3.8
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
License-File: LICENSES/certifi.txt
|
|
28
|
+
License-File: LICENSES/configparser.txt
|
|
29
|
+
License-File: LICENSES/cryptography.txt
|
|
30
|
+
License-File: LICENSES/jwcrypto.txt
|
|
31
|
+
License-File: LICENSES/python-dateutil.txt
|
|
32
|
+
License-File: LICENSES/requests.txt
|
|
33
|
+
License-File: LICENSES/six.txt
|
|
34
|
+
License-File: LICENSES/urllib3.txt
|
|
35
|
+
Requires-Dist: certifi>=2017.4.17
|
|
36
|
+
Requires-Dist: python-dateutil>=2.1
|
|
37
|
+
Requires-Dist: six>=1.10
|
|
38
|
+
Requires-Dist: urllib3>=1.23
|
|
39
|
+
Requires-Dist: requests>=2.25.1
|
|
40
|
+
Requires-Dist: jwcrypto>=1.0
|
|
41
|
+
Requires-Dist: configparser>=5.0.2
|
|
42
|
+
Requires-Dist: cryptography>=3.4
|
|
43
|
+
Provides-Extra: dev
|
|
44
|
+
Requires-Dist: autopep8>=1.5.7; extra == "dev"
|
|
45
|
+
Requires-Dist: pycodestyle>=2.7.0; extra == "dev"
|
|
46
|
+
Dynamic: license-file
|
|
47
|
+
|
|
48
|
+
# Laavat Signing Solution CLI Tool
|
|
49
|
+
|
|
50
|
+
> ⚠️ **Reference Implementation Only** — This is a reference implementation and should **not be used in production**. Security improvements are planned before this tool is productized. Use this for evaluation and development purposes only.
|
|
51
|
+
|
|
52
|
+
The `signing-tool` package provides the Laavat Signing Solution command-line client.
|
|
53
|
+
It supports client registration, product management, image signing, secrets management, and more via the SaaS API.
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
|
|
57
|
+
Install from PyPI when released:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pip install signing-tool
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Install from source during development:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
cd clients/python3
|
|
67
|
+
python3 -m pip install .
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Quick Start
|
|
71
|
+
|
|
72
|
+
Display help:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
signing-tool --help
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Recommended usage
|
|
79
|
+
|
|
80
|
+
Use a configuration file to keep credentials out of command history and logs. Create the file with `config-init`, then run the CLI using the `-n` option.
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
config-init -n test.ini -t "$TOKEN" -s -a https://app.laavat.io/<CustomerName>/api/v1
|
|
84
|
+
signing-tool -n test.ini product getall
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Alternative usage
|
|
88
|
+
|
|
89
|
+
You can also pass settings directly on the command line, but this is less secure because tokens may become visible in shell history or process listings.
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
signing-tool -c -t "$TOKEN" -a https://app.laavat.io/<CustomerName>/api/v1 product getall
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Configuration Options
|
|
96
|
+
|
|
97
|
+
Option 1: create an ini config file using `config-init`:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
config-init -n test.ini -t "$TOKEN" -s -a https://app.laavat.io/<CustomerName>/api/v1
|
|
101
|
+
signing-tool -n test.ini product getall
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Option 2: pass settings directly on the command line (not recommended for secrets):
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
signing-tool -c -t "$TOKEN" -a https://app.laavat.io/<CustomerName>/api/v1 product getall
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Example Signing Commands
|
|
111
|
+
|
|
112
|
+
HAB image signing with config file:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
signing-tool -n test.ini imagesigning add SignHABIMG -P <product-id> --operid <operator-id> -p <payload>
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
OCI signing with token and API address:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
signing-tool -c -t "$TOKEN" -a https://app.laavat.io/<CustomerName>/api/v1 imagesigning add SignOCI -P <product-id> --operid <operator-id> -A <artifact>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Requirements
|
|
125
|
+
|
|
126
|
+
- Python 3.8 or newer
|
|
127
|
+
|
|
128
|
+
## Packaging
|
|
129
|
+
|
|
130
|
+
This package is configured for PyPI distribution using `pyproject.toml` and `setuptools`.
|
|
131
|
+
Read the `pyproject.toml` file for package metadata and published package configuration.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Laavat Signing Solution CLI Tool
|
|
2
|
+
|
|
3
|
+
> ⚠️ **Reference Implementation Only** — This is a reference implementation and should **not be used in production**. Security improvements are planned before this tool is productized. Use this for evaluation and development purposes only.
|
|
4
|
+
|
|
5
|
+
The `signing-tool` package provides the Laavat Signing Solution command-line client.
|
|
6
|
+
It supports client registration, product management, image signing, secrets management, and more via the SaaS API.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
Install from PyPI when released:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
pip install signing-tool
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Install from source during development:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
cd clients/python3
|
|
20
|
+
python3 -m pip install .
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
24
|
+
|
|
25
|
+
Display help:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
signing-tool --help
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Recommended usage
|
|
32
|
+
|
|
33
|
+
Use a configuration file to keep credentials out of command history and logs. Create the file with `config-init`, then run the CLI using the `-n` option.
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
config-init -n test.ini -t "$TOKEN" -s -a https://app.laavat.io/<CustomerName>/api/v1
|
|
37
|
+
signing-tool -n test.ini product getall
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Alternative usage
|
|
41
|
+
|
|
42
|
+
You can also pass settings directly on the command line, but this is less secure because tokens may become visible in shell history or process listings.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
signing-tool -c -t "$TOKEN" -a https://app.laavat.io/<CustomerName>/api/v1 product getall
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Configuration Options
|
|
49
|
+
|
|
50
|
+
Option 1: create an ini config file using `config-init`:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
config-init -n test.ini -t "$TOKEN" -s -a https://app.laavat.io/<CustomerName>/api/v1
|
|
54
|
+
signing-tool -n test.ini product getall
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Option 2: pass settings directly on the command line (not recommended for secrets):
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
signing-tool -c -t "$TOKEN" -a https://app.laavat.io/<CustomerName>/api/v1 product getall
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Example Signing Commands
|
|
64
|
+
|
|
65
|
+
HAB image signing with config file:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
signing-tool -n test.ini imagesigning add SignHABIMG -P <product-id> --operid <operator-id> -p <payload>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
OCI signing with token and API address:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
signing-tool -c -t "$TOKEN" -a https://app.laavat.io/<CustomerName>/api/v1 imagesigning add SignOCI -P <product-id> --operid <operator-id> -A <artifact>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Requirements
|
|
78
|
+
|
|
79
|
+
- Python 3.8 or newer
|
|
80
|
+
|
|
81
|
+
## Packaging
|
|
82
|
+
|
|
83
|
+
This package is configured for PyPI distribution using `pyproject.toml` and `setuptools`.
|
|
84
|
+
Read the `pyproject.toml` file for package metadata and published package configuration.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Release Notes
|
|
2
|
+
|
|
3
|
+
## v3.6.1 (2026-06-03)
|
|
4
|
+
|
|
5
|
+
**This is a patch release**
|
|
6
|
+
|
|
7
|
+
Following changes and improvements in this release:
|
|
8
|
+
- PyPI package release with reference implementation status
|
|
9
|
+
- Added PyPI metadata: README, LICENSE, and third-party license attribution
|
|
10
|
+
- Added reference implementation warning in README
|
|
11
|
+
- Improved package distribution configuration
|
|
12
|
+
|
|
13
|
+
## v3.6.0 (2026-06-03)
|
|
14
|
+
|
|
15
|
+
**This is a minor release**
|
|
16
|
+
|
|
17
|
+
Following changes and improvements in this release:
|
|
18
|
+
- Added support for providing metadata to imagesigning request. JSON keyvalue pairs.
|
|
19
|
+
|
|
20
|
+
## v3.5.0 (2026-05-05)
|
|
21
|
+
|
|
22
|
+
**This is a minor release**
|
|
23
|
+
|
|
24
|
+
Following changes and improvements in this release:
|
|
25
|
+
- Added support for EncryptImageWithAES operation type
|
|
26
|
+
|
|
27
|
+
## v3.4.0 (2026-04-30)
|
|
28
|
+
|
|
29
|
+
**This is a minor release**
|
|
30
|
+
|
|
31
|
+
Following changes and improvements in this release:
|
|
32
|
+
- Added support for wrapping the extractable keys from the platform
|
|
33
|
+
|
|
34
|
+
## v3.3.0 (2026-03-24)
|
|
35
|
+
|
|
36
|
+
**This is a minor release**
|
|
37
|
+
|
|
38
|
+
Following changes and improvements in this release:
|
|
39
|
+
- Added support for OP-TEESigning operation in imagesigning
|
|
40
|
+
|
|
41
|
+
## v3.1.0 (2026-01-30)
|
|
42
|
+
|
|
43
|
+
**This is a minor release**
|
|
44
|
+
|
|
45
|
+
Following changes and improvements in this release:
|
|
46
|
+
- Removed SignOCI subcommand and artifactURI parameter from signing-tool CLI
|
|
47
|
+
|
|
48
|
+
## v3.0.0 (2026-01-20)
|
|
49
|
+
|
|
50
|
+
**This is a major release**
|
|
51
|
+
|
|
52
|
+
Following changes and improvements in this release:
|
|
53
|
+
- Version Info System
|
|
54
|
+
- Added version.py with version, git tag, branch, commit, build date, and API version
|
|
55
|
+
- signing-tool --version now shows detailed version information
|
|
56
|
+
- Python Packaging
|
|
57
|
+
- Added pyproject.toml for modern Python packaging
|
|
58
|
+
- Added config-init CLI command
|
|
59
|
+
- Code Quality
|
|
60
|
+
- Fixed pycodestyle errors across signingtool modules
|
|
61
|
+
- Improved code formatting and line lengths
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "signing-tool"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Laavat Signing Solution CLI Tool"
|
|
9
|
+
readme = { file = "README.md", content-type = "text/markdown" }
|
|
10
|
+
license = { file = "LICENSE" }
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "Laavat Oy", email = "contact@laavat.com" },
|
|
13
|
+
]
|
|
14
|
+
keywords = ["signing", "cli", "pki", "certificate", "signing-tool", "laavat"]
|
|
15
|
+
urls = { Documentation = "https://docs.laavat.io/democlient/usage/", Homepage = "https://docs.laavat.io/" }
|
|
16
|
+
requires-python = ">=3.8"
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 5 - Production/Stable",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"License :: Other/Proprietary License",
|
|
21
|
+
"Operating System :: OS Independent",
|
|
22
|
+
"Programming Language :: Python :: 3",
|
|
23
|
+
"Programming Language :: Python :: 3.8",
|
|
24
|
+
"Programming Language :: Python :: 3.9",
|
|
25
|
+
"Programming Language :: Python :: 3.10",
|
|
26
|
+
"Programming Language :: Python :: 3.11",
|
|
27
|
+
]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"certifi>=2017.4.17",
|
|
30
|
+
"python-dateutil>=2.1",
|
|
31
|
+
"six>=1.10",
|
|
32
|
+
"urllib3>=1.23",
|
|
33
|
+
"requests>=2.25.1",
|
|
34
|
+
"jwcrypto>=1.0",
|
|
35
|
+
"configparser>=5.0.2",
|
|
36
|
+
"cryptography>=3.4",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[project.optional-dependencies]
|
|
40
|
+
dev = [
|
|
41
|
+
"autopep8>=1.5.7",
|
|
42
|
+
"pycodestyle>=2.7.0",
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
[project.scripts]
|
|
46
|
+
signing-tool = "signingtool.cli:main"
|
|
47
|
+
config-init = "signingtool.config_init:main"
|
|
48
|
+
|
|
49
|
+
[tool.setuptools]
|
|
50
|
+
license-files = ["LICENSE", "LICENSES/*"]
|
|
51
|
+
|
|
52
|
+
[tool.setuptools.packages.find]
|
|
53
|
+
where = ["."]
|
|
54
|
+
include = ["signingtool*"]
|
|
55
|
+
|
|
56
|
+
[tool.setuptools.dynamic]
|
|
57
|
+
version = {attr = "signingtool.version.__version__"}
|