You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sample cleanup - instead of using `ClientSecretCredentials`, the samples now use
8
+
DefaultAzureCredential.
9
+
7
10
### Breaking Changes
8
11
12
+
* TPM attestation takes a JSON string parameter and returns a JSON string parameter.
13
+
*`TPMAttestationRequest` and `TPMAttestationResponse` type were removed.
14
+
*`confirmation` attribute removed from `AttestationResult` type.
15
+
* The `AttestationSigningKey` type was removed, replaced with a `signing_key` and
16
+
`signing_certificate` kwargs parameter.
17
+
* All certificates and keys accepted and returned by the SDK are now PEM encoded
18
+
strings instead of DER encoded arrays of bytes for easier manipulation and
19
+
interoperability.
20
+
* Removed `AttestationResponse` type, token value merged into `AttestationResult`,
21
+
`PolicyResult`, etc.
22
+
* Removed `TokenValidationOptions` type and merged the validation options into
23
+
keyword arguments on the APIs which validate returned tokens. Those keyword
24
+
arguments can also be specified on the Client classes to simplify individual
25
+
API invocations.
26
+
* Renamed `instance_url` parameter to the constructors to `endpoint`.
27
+
* Many optional fields in `AttestationResult` were made non-optional.
28
+
*`AttestationToken._validate_token` is made internal-only, and now returns `None`.
29
+
* The caller provided `validation_callback` now must throw exceptions on invalid
30
+
tokens rather than returning `False`.
31
+
* Removed the `AttestationData` type, instead the `attest_xxx` APIs take two sets
32
+
of parameters: `inittime_data` and `inittime_json` and `runtime_data` and `runtime_json`.
33
+
if the `_json` value is set, the value of the parameter is an array of UTF8 encoded
34
+
JSON values, if the `_data` value is set, the value of the parameter is an array
35
+
of bytes.
36
+
* The `get_policy` API now returns a `Tuple[str, AttestationToken]` to simplify
37
+
the consumption experience.
38
+
* The `get_policy_management_certificates` API also returns a `Tuple[list[list[string]], AttestationToken]` to simplify the consumption experience. Note that each of the entries
39
+
in the list is a PEM encoded X.509 certificate.
40
+
41
+
To call into the attest APIs if you care about the attestation policy and token,
* The `AttestationToken` class no longer inherits from `Generic`.
68
+
* The `attest_sgx_enclave`, and `attest_openenclave` APIs now return a tuple of
69
+
`AttestationResult`, `AttestationToken`, similar to the `get_policy` API.
70
+
* The `set_policy`, `reset_policy`, `add_policy_management_certificate`, and `remove_policy_management_certificate` APIs all return a tuple.
71
+
* The `AttestationToken.get_body()` API was renamed `AttestationToken.body()`
72
+
* Several time related properties were renamed to be consistent with the usage from
73
+
keyvault:
74
+
* The `expiration_time` property on `AttestationToken` was renamed to `expires`.
75
+
* The `issuance_time` property on `AttestationToken` was renamed to `issued_on`.
76
+
* The `not_before_time` property on `AttestationToken` was renamed to `not_before`.
77
+
* The `StoredAttestationPolicy` model type has been removed. To validate the attestation policy hash, use the `AttestationPolicyToken` model object instead.
78
+
* The `get_openidmetadata` API has been renamed `get_open_id_metadata`.
79
+
9
80
### Key Bugs Fixed
10
81
11
82
### Fixed
12
83
13
-
14
84
## 1.0.0b4 (2021-06-08)
15
85
16
86
### Features Added
17
87
18
-
- Added reset_policy API which was missed in the previous API.
19
-
- Added models for all the generated API types.
20
-
- Documentation cleanup for several APIs.
88
+
* Added reset_policy API.
89
+
* Added models.
90
+
* Documentation cleanup.
21
91
22
92
### Breaking Changes
23
93
24
-
- Creating the `StoredAttestationPolicy` model type means that the `attestation_policy`
94
+
* Creating the `StoredAttestationPolicy` model type means that the `attestation_policy`
25
95
kwargs parameter for the constructor has been replaced with a positional `policy` parameter. As a result of this change, this code:
26
96
27
97
```python
@@ -34,32 +104,32 @@ changes to:
34
104
StoredAttestationPolicy(attestation_policy)
35
105
```
36
106
37
-
- Several parameters for the `AttestationResult` type have been renamed, and
107
+
* Several parameters for the `AttestationResult` type have been renamed, and
38
108
several parameters which were shared with `AttestationToken` have been
39
109
removed. In general, the naming changes removed some protocol specific
40
110
elements and replaced them with friendlier names. Finally, the deprecated
41
111
attributes have been removed from the `AttestationResult`
42
112
43
113
Full set of changes:
44
-
-`iss` renamed to `issuer`
45
-
-`cnf` renamed to `confirmation`
46
-
-`jti` renamed to `unique_identifier`
47
-
-`iat` removed
48
-
-`exp` removed
49
-
-`nbf` removed
50
-
-`deprecated_version` removed
51
-
-`deprecated_is_debuggable` removed
52
-
-`deprecated_sgx_collateral` removed
53
-
-`deprecated_enclave_held_data` removed
54
-
-`deprecated_enclave_held_data2` removed
55
-
-`deprecated_product_id` removed
56
-
-`deprecated_mr_enclave` removed
57
-
-`deprecated_mr_signer` removed
58
-
-`deprecated_svn` removed
59
-
-`deprecated_tee` removed
60
-
-`deprecated_policy_signer` removed
61
-
-`deprecated_policy_hash` removed
62
-
-`deprecated_rp_data` removed
114
+
*`iss` renamed to `issuer`
115
+
*`cnf` renamed to `confirmation`
116
+
*`jti` renamed to `unique_identifier`
117
+
*`iat` removed
118
+
*`exp` removed
119
+
*`nbf` removed
120
+
*`deprecated_version` removed
121
+
*`deprecated_is_debuggable` removed
122
+
*`deprecated_sgx_collateral` removed
123
+
*`deprecated_enclave_held_data` removed
124
+
*`deprecated_enclave_held_data2` removed
125
+
*`deprecated_product_id` removed
126
+
*`deprecated_mr_enclave` removed
127
+
*`deprecated_mr_signer` removed
128
+
*`deprecated_svn` removed
129
+
*`deprecated_tee` removed
130
+
*`deprecated_policy_signer` removed
131
+
*`deprecated_policy_hash` removed
132
+
*`deprecated_rp_data` removed
63
133
64
134
If customers need to access the removed or renamed fields directly, they can
65
135
use the `get_body` method of the `AttestationResponse` object:
0 commit comments