Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
4abf2b0
First set of API review feedback
LarryOsterman Jun 8, 2021
c5e1081
Added backend to certificate load API
LarryOsterman Jun 8, 2021
f08fe1e
Fixed silly typo
LarryOsterman Jun 8, 2021
27cf50f
Minor tweaks
LarryOsterman Jun 8, 2021
2a939bd
Removed AttestationResponse type; Consolidated get and set policy res…
LarryOsterman Jun 9, 2021
fe941c4
Re-use signing_certificate and signing_key parameter as either bytes …
LarryOsterman Jun 9, 2021
95d1044
Removed TokenValidationOptions and consolidated them into kwargs on t…
LarryOsterman Jun 10, 2021
dbc2d01
Renamed instance_url parameter to endpoint; regenerated swagger
LarryOsterman Jun 10, 2021
350b53b
Validation is now private; validation always throws exceptions.
LarryOsterman Jun 10, 2021
ebb4384
Convert samples to use DefaultAzureCredential instead of ClientSecret…
LarryOsterman Jun 10, 2021
665eed0
Merge branch 'master' into larryo-apireviewfeedback
LarryOsterman Jun 10, 2021
19c73c3
Removed AttestationData type; Changed the attest APIs to return a tup…
LarryOsterman Jun 10, 2021
80e89ad
get_policy now returns a tuple, not a PolicyResult
LarryOsterman Jun 11, 2021
bd6f5c8
AttestationToken no longer inherits from Generic.
LarryOsterman Jun 11, 2021
7e1b76d
Updated docstr's
LarryOsterman Jun 12, 2021
a139af6
Fixed small typo in docstr
LarryOsterman Jun 12, 2021
596ccdf
Pull request feedback; Better synchronization of sample code
LarryOsterman Jun 14, 2021
5b07b22
Formatting fixes
LarryOsterman Jun 14, 2021
d369152
Converted to Py3 typehints
LarryOsterman Jun 14, 2021
6b40f54
Don't return default types, just return none if kwargs aren't present
LarryOsterman Jun 14, 2021
de47540
Changed dedent to make sphinx happier
LarryOsterman Jun 14, 2021
109880f
Fixed ApiView errors
LarryOsterman Jun 14, 2021
42d5ba7
list->List in typehint
LarryOsterman Jun 14, 2021
ee65ab0
Pull request feedback
LarryOsterman Jun 15, 2021
43a55a4
More pull request fixes
LarryOsterman Jun 15, 2021
8b83cca
Removed comments from samples in README
LarryOsterman Jun 15, 2021
38ac8a3
Merge branch 'main' into larryo-apireviewfeedback
LarryOsterman Jun 21, 2021
62e9305
More pull request stuff
LarryOsterman Jun 21, 2021
30cfaf5
Added preparer to add data driven constructs to some policy tests
LarryOsterman Jun 22, 2021
6292e79
Updated tests.yml to add a bunch of environmetn variables
LarryOsterman Jun 22, 2021
f75b762
Pretty printing
LarryOsterman Jun 22, 2021
4326db6
Async preparers now work; cleaned up helper functions
LarryOsterman Jun 22, 2021
70f683c
Isolated AttestationPreparer from async/sync TDD preparers
LarryOsterman Jun 22, 2021
3602869
Fixed urls of recorded tests
LarryOsterman Jun 22, 2021
2c24cf0
get policy management certificates is recorded only because of isolat…
LarryOsterman Jun 22, 2021
de3df91
Fixed some typos in tests.yml
LarryOsterman Jun 22, 2021
da7c550
API Review Feedback - Attestation APIs now return a tuple, not an att…
LarryOsterman Jun 22, 2021
63e2e0b
Fixed samples after most recent change; updated readme and changelog.
LarryOsterman Jun 22, 2021
285e629
Renamed time fields in attestation token; policy APIs all return tuples
LarryOsterman Jun 24, 2021
f65068c
Fixed missed name change
LarryOsterman Jun 24, 2021
4e24f99
Renamed get_body to body()
LarryOsterman Jun 24, 2021
efae428
Prepare for release; Fixed some more docstr values
LarryOsterman Jun 24, 2021
7e8edfa
Use type definition for return types of Attestation APIs
LarryOsterman Jun 28, 2021
8225fa7
Stop using type aliases in docstrs
LarryOsterman Jun 28, 2021
c04ec2a
API Review feedback
LarryOsterman Jun 28, 2021
55c32eb
Removed StoredAttestationPolicy, replaced with AttestationPolicyToken
LarryOsterman Jun 29, 2021
ab984e1
Added docstr for policy parameter to AttestationPolicyToken, pretty p…
LarryOsterman Jun 29, 2021
178af81
Removed *args parameter accidentally added
LarryOsterman Jun 29, 2021
01fbe83
Renamed get_openidmetadata to get_open_id_metadata
LarryOsterman Jun 29, 2021
f56d233
Updated breaking change list
LarryOsterman Jun 29, 2021
0728994
Added *args named argument to force certificate_to_xxx parameter to b…
LarryOsterman Jun 29, 2021
c57c1c0
Try 2 at *args for policy certificate APIs
LarryOsterman Jun 29, 2021
d6d8bb5
Merge branch 'main' into larryo-apireviewfeedback
LarryOsterman Jun 29, 2021
90c8402
Pull request feedback; live test fix
LarryOsterman Jun 29, 2021
3f1b546
Type hint regex cleanup
LarryOsterman Jun 29, 2021
e26604f
Fixed typo; re-ran prettier
LarryOsterman Jun 29, 2021
519b568
A couple of pull request feedback items
LarryOsterman Jun 29, 2021
66e91be
Pull request feedback
LarryOsterman Jun 30, 2021
31a889e
Removed non-python spelling
LarryOsterman Jun 30, 2021
1af428f
Switched model for _from_generated to return None if generated is None
LarryOsterman Jun 30, 2021
5b1941f
Pylint fixes
LarryOsterman Jun 30, 2021
168b618
Pull request feedback
LarryOsterman Jun 30, 2021
1004249
Docstr cleanup
LarryOsterman Jun 30, 2021
0560985
Pylint and docstr fixes
LarryOsterman Jun 30, 2021
347e714
Fixed ][ typo that got missed.
LarryOsterman Jun 30, 2021
447a695
Invert order of endpoint and credentials
LarryOsterman Jun 30, 2021
0037d14
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
2612004
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
c0ddd35
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
8e3ad7d
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
6696acf
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
14234f9
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
4d7b714
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
24f5e53
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
0df59fe
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
695d193
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
cdd2f6e
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
136aeb5
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
c53bbc4
Pull request feedback
LarryOsterman Jul 1, 2021
8ee3ba7
Constructor for PolicyResult takes anAttestationSigner
LarryOsterman Jul 1, 2021
7e0eb38
More pull request feedback
LarryOsterman Jul 1, 2021
bc10738
Corrected name of azure-identity package
LarryOsterman Jul 1, 2021
6380a38
Next round of fixes
LarryOsterman Jul 1, 2021
861ba47
Use super instead of calling the parent init directly
LarryOsterman Jul 1, 2021
e6cc5d1
Updated recordings
LarryOsterman Jul 1, 2021
7b70c13
Minor cleanup to authn part of readme.md
LarryOsterman Jul 1, 2021
ca52c24
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
ca3ab03
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
e17da40
Update sdk/attestation/azure-security-attestation/azure/security/atte…
LarryOsterman Jul 1, 2021
1d6e360
Update sdk/attestation/azure-security-attestation/samples/sample_atte…
LarryOsterman Jul 1, 2021
ccf40d0
Update sdk/attestation/azure-security-attestation/samples/sample_atte…
LarryOsterman Jul 1, 2021
6ed2a60
Update sdk/attestation/azure-security-attestation/samples/sample_atte…
LarryOsterman Jul 1, 2021
66a0be3
Pull request suggestions
LarryOsterman Jul 1, 2021
5b3bb03
Merge branch 'larryo-apireviewfeedback' of https://github.com/LarryOs…
LarryOsterman Jul 1, 2021
8084cb1
README fixes
LarryOsterman Jul 1, 2021
9b007f7
Sample import cleanup
LarryOsterman Jul 1, 2021
9cf6e2a
Attestation needs msrest > 6.2.1
LarryOsterman Jul 1, 2021
c2e30bc
Cleanup test dependencies
LarryOsterman Jul 1, 2021
886cc49
Consolodated msrest exceptions for attestation
LarryOsterman Jul 1, 2021
548425a
Fixed still more pull request feedback
LarryOsterman Jul 2, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 99 additions & 29 deletions sdk/attestation/azure-security-attestation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,97 @@
# Release History

## 1.0.0b5 (Unreleased)
## 1.0.0 (2021-07-06)

### Features Added

Sample cleanup - instead of using `ClientSecretCredentials`, the samples now use
DefaultAzureCredential.

### Breaking Changes

* TPM attestation takes a JSON string parameter and returns a JSON string parameter.
* `TPMAttestationRequest` and `TPMAttestationResponse` type were removed.
* `confirmation` attribute removed from `AttestationResult` type.
* The `AttestationSigningKey` type was removed, replaced with a `signing_key` and
`signing_certificate` kwargs parameter.
* All certificates and keys accepted and returned by the SDK are now PEM encoded
strings instead of DER encoded arrays of bytes for easier manipulation and
interoperability.
* Removed `AttestationResponse` type, token value merged into `AttestationResult`,
`PolicyResult`, etc.
* Removed `TokenValidationOptions` type and merged the validation options into
keyword arguments on the APIs which validate returned tokens. Those keyword
arguments can also be specified on the Client classes to simplify individual
API invocations.
* Renamed `instance_url` parameter to the constructors to `endpoint`.
* Many optional fields in `AttestationResult` were made non-optional.
* `AttestationToken._validate_token` is made internal-only, and now returns `None`.
* The caller provided `validation_callback` now must throw exceptions on invalid
tokens rather than returning `False`.
* Removed the `AttestationData` type, instead the `attest_xxx` APIs take two sets
of parameters: `inittime_data` and `inittime_json` and `runtime_data` and `runtime_json`.
if the `_json` value is set, the value of the parameter is an array of UTF8 encoded
JSON values, if the `_data` value is set, the value of the parameter is an array
of bytes.
* The `get_policy` API now returns a `Tuple[str, AttestationToken]` to simplify
the consumption experience.
* 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
in the list is a PEM encoded X.509 certificate.

To call into the attest APIs if you care about the attestation policy and token,
you can write:

```python
policy, token = attest_client.get_policy(AttestationType.SGX_ENCLAVE)
```

If you only care about the policy, you can write any of the following:

```python
policy, _ = attest_client.get_policy(AttestationType.SGX_ENCLAVE)
```

or

```python
policy = attest_client.get_policy(AttestationType.SGX_ENCLAVE)[0]
```

or

```python
response = attest_client.get_policy(AttestationType.SGX_ENCLAVE)
policy = response[0]
```

* The `AttestationToken` class no longer inherits from `Generic`.
* The `attest_sgx_enclave`, and `attest_openenclave` APIs now return a tuple of
`AttestationResult`, `AttestationToken`, similar to the `get_policy` API.
* The `set_policy`, `reset_policy`, `add_policy_management_certificate`, and `remove_policy_management_certificate` APIs all return a tuple.
* The `AttestationToken.get_body()` API was renamed `AttestationToken.body()`
* Several time related properties were renamed to be consistent with the usage from
keyvault:
* The `expiration_time` property on `AttestationToken` was renamed to `expires`.
* The `issuance_time` property on `AttestationToken` was renamed to `issued_on`.
* The `not_before_time` property on `AttestationToken` was renamed to `not_before`.
* The `StoredAttestationPolicy` model type has been removed. To validate the attestation policy hash, use the `AttestationPolicyToken` model object instead.
* The `get_openidmetadata` API has been renamed `get_open_id_metadata`.

### Key Bugs Fixed

### Fixed


## 1.0.0b4 (2021-06-08)

### Features Added

- Added reset_policy API which was missed in the previous API.
- Added models for all the generated API types.
- Documentation cleanup for several APIs.
* Added reset_policy API.
* Added models.
* Documentation cleanup.

### Breaking Changes

- Creating the `StoredAttestationPolicy` model type means that the `attestation_policy`
* Creating the `StoredAttestationPolicy` model type means that the `attestation_policy`
kwargs parameter for the constructor has been replaced with a positional `policy` parameter. As a result of this change, this code:

```python
Expand All @@ -34,32 +104,32 @@ changes to:
StoredAttestationPolicy(attestation_policy)
```

- Several parameters for the `AttestationResult` type have been renamed, and
* Several parameters for the `AttestationResult` type have been renamed, and
several parameters which were shared with `AttestationToken` have been
removed. In general, the naming changes removed some protocol specific
elements and replaced them with friendlier names. Finally, the deprecated
attributes have been removed from the `AttestationResult`

Full set of changes:
- `iss` renamed to `issuer`
- `cnf` renamed to `confirmation`
- `jti` renamed to `unique_identifier`
- `iat` removed
- `exp` removed
- `nbf` removed
- `deprecated_version` removed
- `deprecated_is_debuggable` removed
- `deprecated_sgx_collateral` removed
- `deprecated_enclave_held_data` removed
- `deprecated_enclave_held_data2` removed
- `deprecated_product_id` removed
- `deprecated_mr_enclave` removed
- `deprecated_mr_signer` removed
- `deprecated_svn` removed
- `deprecated_tee` removed
- `deprecated_policy_signer` removed
- `deprecated_policy_hash` removed
- `deprecated_rp_data` removed
* `iss` renamed to `issuer`
* `cnf` renamed to `confirmation`
* `jti` renamed to `unique_identifier`
* `iat` removed
* `exp` removed
* `nbf` removed
* `deprecated_version` removed
* `deprecated_is_debuggable` removed
* `deprecated_sgx_collateral` removed
* `deprecated_enclave_held_data` removed
* `deprecated_enclave_held_data2` removed
* `deprecated_product_id` removed
* `deprecated_mr_enclave` removed
* `deprecated_mr_signer` removed
* `deprecated_svn` removed
* `deprecated_tee` removed
* `deprecated_policy_signer` removed
* `deprecated_policy_hash` removed
* `deprecated_rp_data` removed

If customers need to access the removed or renamed fields directly, they can
use the `get_body` method of the `AttestationResponse` object:
Expand All @@ -73,16 +143,16 @@ StoredAttestationPolicy(attestation_policy)

### Features Added

- Preliminary implementation of a Track 2 SDK for the attestation service.
* Preliminary implementation of a Track 2 SDK for the attestation service.

### Breaking Changes

- Complete reimplementation of the API surface, follows the API patterns already
* Complete reimplementation of the API surface, follows the API patterns already
established for the attestation service.

## 1.0.0b1 (2021-01-15)

Initial early preview release for MAA Data Plane SDK
Demonstrates use of the machine generated MAA APIs.

- Initial Release
* Initial Release
Loading