Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions api/Apis/CredentialsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ All URIs are relative to *http://localhost:8080/api/2.1/unity-catalog*

Create a credential

Creates a new credential. The type of credential to be created is determined by the **purpose** field.
Creates a new credential. The type of credential to be created is determined by the **purpose** field. Set exactly one of `aws_iam_role` and `s3_compatible`; otherwise the request fails with `INVALID_ARGUMENT`. EXPERIMENTAL: `s3_compatible` is available only when the server property `server.s3-compatible-storage.enabled` is `true`. Otherwise a create or update request that sets `s3_compatible`, and vending for a path under one, fail with `INVALID_ARGUMENT`; other updates, reads, lists and deletes of existing ones still work. An `s3_compatible` credential holds an access key pair of S3-compatible storage and the storage's S3 endpoint. `s3_endpoint` and `assume_role.sts_endpoint` are http or https URLs with a host, and without user info, a query or a fragment; other values fail with `INVALID_ARGUMENT`. With `assume_role`, the key pair signs AssumeRole on the storage's STS, and Unity Catalog vends short-lived credentials scoped to the requested path and privilege. Without it, the server property `server.s3-compatible-storage.static-key-vending` decides what clients receive: * `endpoint-only` (default): the S3 endpoint and region, but no keys; engines bring their own. * `static-key`: the key pair itself. It is not scoped to the requested path or privilege, and changing Unity Catalog permissions does not revoke a key pair already vended. Vends with keys (`assume_role` sessions and `static-key` key pairs) suit only servers whose clients all read `s3_endpoint`: a client that does not would send the keys to AWS S3. Without `assume_role`, in both modes the vended `expiration_time` is a refetch time an hour ahead, not when the keys expire, and the Iceberg REST table config of a `static-key` vend carries no expiration. A running client need not fetch again then; the UC Hadoop connector picks up a changed endpoint on its first table load after `expiration_time`. The external locations of an `s3_compatible` credential must be `s3://` paths. Paths stay `s3://<bucket>/<path>` everywhere: a path reaches the storage of the credential of the external location covering it, so one bucket name can be on several storage systems under different, non-overlapping locations.

### Parameters

Expand Down Expand Up @@ -128,7 +128,7 @@ No authorization required

Update a credential

Updates a credential. The caller must be a metastore admin, the credential owner, or have MANAGE on the credential.
Updates a credential. The caller must be a metastore admin, the credential owner, or have MANAGE on the credential. Set at most one of `aws_iam_role` and `s3_compatible`; setting both fails with `INVALID_ARGUMENT`. Either one replaces the stored credential as a whole, with no field-level merge, and can change its type: an `s3_compatible` update carries `secret_access_key` again, and leaving out `assume_role` removes it. Updates without either, such as of the name or comment, keep the stored credential. EXPERIMENTAL: whoever may update a credential is trusted with where the data under it lives. Changing `s3_endpoint` of an `s3_compatible` credential moves data access for every path under its external locations, including tables and volumes other principals own, to the new host; changing `sts_endpoint` moves where their credentials are issued. The server itself connects to both endpoints. An `s3_compatible` credential has only `s3://` external locations: setting `s3_compatible` while a location outside `s3://` uses the credential, or creating or updating such a location to use it, fails with `INVALID_ARGUMENT`.

### Parameters

Expand Down
4 changes: 2 additions & 2 deletions api/Apis/ExternalLocationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ All URIs are relative to *http://localhost:8080/api/2.1/unity-catalog*

Create an external location

Creates a new external location entry in the metastore. The caller must be a metastore admin to be able to create external locations.
Creates a new external location entry in the metastore. The caller must be a metastore admin to be able to create external locations. EXPERIMENTAL: a location whose credential is `s3_compatible` must have an `s3://` URL; otherwise the request fails with `INVALID_ARGUMENT`.

### Parameters

Expand Down Expand Up @@ -129,7 +129,7 @@ No authorization required

Update an external location

Updates an external location in the metastore. The caller must be a metastore admin, the external location owner, or have MANAGE on the external location.
Updates an external location in the metastore. The caller must be a metastore admin, the external location owner, or have MANAGE on the external location. EXPERIMENTAL: a location whose credential is `s3_compatible` must have an `s3://` URL; otherwise the request fails with `INVALID_ARGUMENT`.

### Parameters

Expand Down
2 changes: 2 additions & 0 deletions api/Models/AwsCredentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| **access\_key\_id** | **String** | The access key ID that identifies the temporary credentials. | [optional] [default to null] |
| **secret\_access\_key** | **String** | The secret access key that can be used to sign AWS API requests. | [optional] [default to null] |
| **session\_token** | **String** | The token that users must pass to AWS API to use the temporary credentials. | [optional] [default to null] |
| **s3\_endpoint** | **String** | EXPERIMENTAL. The S3 API endpoint to send requests for the path to, set when the path is on S3-compatible storage. It is the `s3_endpoint` of the storage credential of the external location covering the path. Requests to it always use path-style addressing. Absent for AWS S3. When that credential does not vend keys, this and `s3_region` are the only fields set. A client that does not support this field must not use the credentials, and must not send their requests to AWS S3. | [optional] [default to null] |
| **s3\_region** | **String** | EXPERIMENTAL. The region to sign S3 requests with, set together with `s3_endpoint`. Unity Catalog asks the storage for the bucket's region, and uses `us-east-1` if it does not say. | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

1 change: 1 addition & 0 deletions api/Models/CreateCredentialRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
| **name** | **String** | The credential name. The name must be unique within the metastore. | [default to null] |
| **comment** | **String** | Comment associated with the credential. | [optional] [default to null] |
| **aws\_iam\_role** | [**AwsIamRoleRequest**](AwsIamRoleRequest.md) | | [optional] [default to null] |
| **s3\_compatible** | [**S3CompatibleRequest**](S3CompatibleRequest.md) | | [optional] [default to null] |
| **purpose** | [**CredentialPurpose**](CredentialPurpose.md) | | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions api/Models/CredentialInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
|------------ | ------------- | ------------- | -------------|
| **name** | **String** | The credential name. The name must be unique within the metastore. | [optional] [default to null] |
| **aws\_iam\_role** | [**AwsIamRoleResponse**](AwsIamRoleResponse.md) | | [optional] [default to null] |
| **s3\_compatible** | [**S3CompatibleResponse**](S3CompatibleResponse.md) | | [optional] [default to null] |
| **comment** | **String** | Comment associated with the credential. | [optional] [default to null] |
| **owner** | **String** | Username of current owner of credential. | [optional] [default to null] |
| **full\_name** | **String** | The full name of the credential. | [optional] [default to null] |
Expand Down
11 changes: 11 additions & 0 deletions api/Models/S3AssumeRole.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# S3AssumeRole
## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **sts\_endpoint** | **String** | EXPERIMENTAL. STS endpoint of the storage to call AssumeRole on, for example `https://minio.example.com:9000`: an http or https URL with a host, and without user info, a query or a fragment; other values fail with `INVALID_ARGUMENT`. Absent when not set: AssumeRole then goes to the credential's `s3_endpoint`, so a change of `s3_endpoint` moves it too. | [optional] [default to null] |
| **role\_arn** | **String** | EXPERIMENTAL. The role to assume. | [default to null] |
| **sts\_region** | **String** | EXPERIMENTAL. The region to sign the AssumeRole request with, of letters, digits, '.', '_' and '-'. If not set, the region of the S3-compatible storage holding the requested path is used. | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

12 changes: 12 additions & 0 deletions api/Models/S3CompatibleRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# S3CompatibleRequest
## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **s3\_endpoint** | **String** | EXPERIMENTAL. S3 API endpoint of the S3-compatible storage, for example `https://minio.example.com:9000`: an http or https URL with a host, and without user info, a query or a fragment; other values fail with `INVALID_ARGUMENT`. Credential vending returns it with the region engines need to reach the storage; requests to it use path-style addressing. | [default to null] |
| **access\_key\_id** | **String** | EXPERIMENTAL. The access key ID. | [default to null] |
| **secret\_access\_key** | **String** | EXPERIMENTAL. The secret access key. Write-only; never returned. | [default to null] |
| **assume\_role** | [**S3AssumeRole**](S3AssumeRole.md) | | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

11 changes: 11 additions & 0 deletions api/Models/S3CompatibleResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# S3CompatibleResponse
## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **s3\_endpoint** | **String** | EXPERIMENTAL. S3 API endpoint of the S3-compatible storage, for example `https://minio.example.com:9000`: an http or https URL with a host, and without user info, a query or a fragment; other values fail with `INVALID_ARGUMENT`. Credential vending returns it with the region engines need to reach the storage; requests to it use path-style addressing. | [default to null] |
| **access\_key\_id** | **String** | EXPERIMENTAL. The access key ID. | [default to null] |
| **assume\_role** | [**S3AssumeRole**](S3AssumeRole.md) | | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion api/Models/TemporaryCredentials.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| **aws\_temp\_credentials** | [**AwsCredentials**](AwsCredentials.md) | | [optional] [default to null] |
| **azure\_user\_delegation\_sas** | [**AzureUserDelegationSAS**](AzureUserDelegationSAS.md) | | [optional] [default to null] |
| **gcp\_oauth\_token** | [**GcpOauthToken**](GcpOauthToken.md) | | [optional] [default to null] |
| **expiration\_time** | **Long** | Server time when the credential will expire, in epoch milliseconds. The API client is advised to cache the credential given this expiration time. | [optional] [default to null] |
| **expiration\_time** | **Long** | Server time when the credential will expire, in epoch milliseconds. The API client is advised to cache the credential given this expiration time. EXPERIMENTAL: for S3-compatible storage without `assume_role`, it is a refetch time an hour ahead, not when the keys expire: a vended key pair stays valid until the storage rotates or revokes it, and a vend without keys has none to expire. A running client need not fetch again then; the UC Hadoop connector picks up a changed endpoint on its first table load after this time. | [optional] [default to null] |
| **url** | **String** | The normalized URL of the storage path the temporary credential was generated for. | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions api/Models/UpdateCredentialRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
| **comment** | **String** | Comment associated with the credential. | [optional] [default to null] |
| **owner** | **String** | Username of current owner of credential. | [optional] [default to null] |
| **aws\_iam\_role** | [**AwsIamRoleRequest**](AwsIamRoleRequest.md) | | [optional] [default to null] |
| **s3\_compatible** | [**S3CompatibleRequest**](S3CompatibleRequest.md) | | [optional] [default to null] |
| **new\_name** | **String** | New name for the credential. | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
3 changes: 3 additions & 0 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ All URIs are relative to *http://localhost:8080/api/2.1/unity-catalog*
- [Privilege](./Models/Privilege.md)
- [PrivilegeAssignment](./Models/PrivilegeAssignment.md)
- [RegisteredModelInfo](./Models/RegisteredModelInfo.md)
- [S3AssumeRole](./Models/S3AssumeRole.md)
- [S3CompatibleRequest](./Models/S3CompatibleRequest.md)
- [S3CompatibleResponse](./Models/S3CompatibleResponse.md)
- [SchemaInfo](./Models/SchemaInfo.md)
- [SecurableType](./Models/SecurableType.md)
- [StagingTableInfo](./Models/StagingTableInfo.md)
Expand Down
Loading
Loading