From 3913b5c6ea5b60686c650f4b37e58798da384178 Mon Sep 17 00:00:00 2001 From: uslon Date: Fri, 15 Mar 2024 16:28:32 +0300 Subject: [PATCH 1/4] static credentials are implemented for Rust SDK --- ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md | 1 + ydb/docs/en/core/reference/ydb-sdk/feature-parity.md | 2 +- ydb/docs/ru/core/reference/ydb-sdk/_includes/auth.md | 1 + ydb/docs/ru/core/reference/ydb-sdk/feature-parity.md | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md b/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md index 20c43e0a668c..a06abfd108ad 100644 --- a/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md +++ b/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md @@ -66,6 +66,7 @@ You can click any of the methods below to go to the source code of an example in | Anonymous | ydb::StaticToken("") | | Access Token | ydb::StaticToken(token) | | Metadata | ydb::GCEMetadata, ydb::YandexMetadata | + Static Credentials | [ydb::StaticCredentialsAuth](https://github.com/uslon/ydb-rs-sdk/blob/master/ydb/examples/auth-static-credentials.rs) | | Service Account Key | not supported | | Determined by environment variables | not supported | | Execution of an external command | ydb.CommandLineYcToken (for example, for authentication using a {{ yandex-cloud }} [IAM token]{% if lang == "ru"%}(https://cloud.yandex.ru/docs/iam/concepts/authorization/iam-token){% endif %}{% if lang == "en" %}(https://cloud.yandex.com/en/docs/iam/concepts/authorization/iam-token){% endif %} from the developer's computer ```ydb::CommandLineYcToken.from_cmd("yc iam create-token")```) | diff --git a/ydb/docs/en/core/reference/ydb-sdk/feature-parity.md b/ydb/docs/en/core/reference/ydb-sdk/feature-parity.md index 13d11711eff3..a59a5b06753e 100644 --- a/ydb/docs/en/core/reference/ydb-sdk/feature-parity.md +++ b/ydb/docs/en/core/reference/ydb-sdk/feature-parity.md @@ -22,7 +22,7 @@ | Load balancing across all nodes of all local DCs | \+ | \+ | \+ | ? | \- | \- | \- | | **Credentials providers** | | Anonymous (default) | \+ | \+ | \+ | \+ | \+ | \+ | \+ | \+ | -| Static (user - password) | \+ | \+ | \+ | \+ | \- | \- | \- | \- | +| Static (user - password) | \+ | \+ | \+ | \+ | \- | \- | \+ | \- | | Token: IAM, OAuth | \+ | \+ | \+ | \+ | \+ | \+ | \+ | \+ | | Service account (Yandex.Cloud specific) | \+ | \+ | \+ | \+ | \+ | \+ | \- | \+ | | Metadata (Yandex.Cloud specific) | \+ | \+ | \+ | \+ | \+ | \+ | \+ | \+ | diff --git a/ydb/docs/ru/core/reference/ydb-sdk/_includes/auth.md b/ydb/docs/ru/core/reference/ydb-sdk/_includes/auth.md index 54e6da3deda9..0b34d48b8442 100644 --- a/ydb/docs/ru/core/reference/ydb-sdk/_includes/auth.md +++ b/ydb/docs/ru/core/reference/ydb-sdk/_includes/auth.md @@ -67,6 +67,7 @@ Access Token | ydb::StaticToken(token) Metadata | ydb::GCEMetadata, ydb::YandexMetadata Service Account Key | не поддерживается + Static Credentials | [ydb::StaticCredentialsAuth](https://github.com/uslon/ydb-rs-sdk/blob/master/ydb/examples/auth-static-credentials.rs) Определяется по переменным окружения | не поддерживается Выполнение внешней команды | ydb.CommandLineYcToken (например, для авторизации с помощью [IAM-токена]{% if lang == "ru"%}(https://cloud.yandex.ru/docs/iam/concepts/authorization/iam-token){% endif %}{% if lang == "en" %}(https://cloud.yandex.com/en/docs/iam/concepts/authorization/iam-token){% endif %} {{ yandex-cloud }} с компьютера разработчика ```ydb::CommandLineYcToken.from_cmd("yc iam create-token")```) diff --git a/ydb/docs/ru/core/reference/ydb-sdk/feature-parity.md b/ydb/docs/ru/core/reference/ydb-sdk/feature-parity.md index 402ed6ec0a9a..e22f14934628 100644 --- a/ydb/docs/ru/core/reference/ydb-sdk/feature-parity.md +++ b/ydb/docs/ru/core/reference/ydb-sdk/feature-parity.md @@ -23,7 +23,7 @@ |Балансировка среди всех нод всех локального ДЦ|\+|\+|\+|?|\-|\-|\-|| |**Credentials providers**||||||||| |Anonymous (по умолчанию)|\+|\+|\+|\+|\+|\+|\+|\+| -|Static (user - password)|\+|\+|\+|\+|\-|\-|\-|\+| +|Static (user - password)|\+|\+|\+|\+|\-|\-|\+|\+| |Token: IAM, OAuth|\+|\+|\+|\+|\+|\+|\+|\+| |Service account (Yandex.Cloud specific)|\+|\+|\+|\+|\+|\+|\-|\+| |Metadata (Yandex.Cloud specific)|\+|\+|\+|\+|\+|\+|\+|\+| From 932fccf079545ad2df669aae83aca7401b3f71b4 Mon Sep 17 00:00:00 2001 From: uslon Date: Fri, 15 Mar 2024 16:34:01 +0300 Subject: [PATCH 2/4] refer to ydb-platform-owned repository --- ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md | 2 +- ydb/docs/ru/core/reference/ydb-sdk/_includes/auth.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md b/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md index a06abfd108ad..0a8dc6903647 100644 --- a/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md +++ b/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md @@ -66,7 +66,7 @@ You can click any of the methods below to go to the source code of an example in | Anonymous | ydb::StaticToken("") | | Access Token | ydb::StaticToken(token) | | Metadata | ydb::GCEMetadata, ydb::YandexMetadata | - Static Credentials | [ydb::StaticCredentialsAuth](https://github.com/uslon/ydb-rs-sdk/blob/master/ydb/examples/auth-static-credentials.rs) | + Static Credentials | [ydb::StaticCredentialsAuth](https://github.com/ydb-platform/ydb-rs-sdk/blob/master/ydb/examples/auth-static-credentials.rs) | | Service Account Key | not supported | | Determined by environment variables | not supported | | Execution of an external command | ydb.CommandLineYcToken (for example, for authentication using a {{ yandex-cloud }} [IAM token]{% if lang == "ru"%}(https://cloud.yandex.ru/docs/iam/concepts/authorization/iam-token){% endif %}{% if lang == "en" %}(https://cloud.yandex.com/en/docs/iam/concepts/authorization/iam-token){% endif %} from the developer's computer ```ydb::CommandLineYcToken.from_cmd("yc iam create-token")```) | diff --git a/ydb/docs/ru/core/reference/ydb-sdk/_includes/auth.md b/ydb/docs/ru/core/reference/ydb-sdk/_includes/auth.md index 0b34d48b8442..73251b2f1d1c 100644 --- a/ydb/docs/ru/core/reference/ydb-sdk/_includes/auth.md +++ b/ydb/docs/ru/core/reference/ydb-sdk/_includes/auth.md @@ -67,7 +67,7 @@ Access Token | ydb::StaticToken(token) Metadata | ydb::GCEMetadata, ydb::YandexMetadata Service Account Key | не поддерживается - Static Credentials | [ydb::StaticCredentialsAuth](https://github.com/uslon/ydb-rs-sdk/blob/master/ydb/examples/auth-static-credentials.rs) + Static Credentials | [ydb::StaticCredentialsAuth](https://github.com/ydb-platform/ydb-rs-sdk/blob/master/ydb/examples/auth-static-credentials.rs) Определяется по переменным окружения | не поддерживается Выполнение внешней команды | ydb.CommandLineYcToken (например, для авторизации с помощью [IAM-токена]{% if lang == "ru"%}(https://cloud.yandex.ru/docs/iam/concepts/authorization/iam-token){% endif %}{% if lang == "en" %}(https://cloud.yandex.com/en/docs/iam/concepts/authorization/iam-token){% endif %} {{ yandex-cloud }} с компьютера разработчика ```ydb::CommandLineYcToken.from_cmd("yc iam create-token")```) From 6f9f8346d5c742f7d82bb000cafd28e5036f0bf6 Mon Sep 17 00:00:00 2001 From: uslon Date: Fri, 15 Mar 2024 17:19:37 +0300 Subject: [PATCH 3/4] add | --- ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md b/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md index 0a8dc6903647..d41ba6552e2f 100644 --- a/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md +++ b/ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md @@ -66,7 +66,7 @@ You can click any of the methods below to go to the source code of an example in | Anonymous | ydb::StaticToken("") | | Access Token | ydb::StaticToken(token) | | Metadata | ydb::GCEMetadata, ydb::YandexMetadata | - Static Credentials | [ydb::StaticCredentialsAuth](https://github.com/ydb-platform/ydb-rs-sdk/blob/master/ydb/examples/auth-static-credentials.rs) | + | Static Credentials | [ydb::StaticCredentialsAuth](https://github.com/ydb-platform/ydb-rs-sdk/blob/master/ydb/examples/auth-static-credentials.rs) | | Service Account Key | not supported | | Determined by environment variables | not supported | | Execution of an external command | ydb.CommandLineYcToken (for example, for authentication using a {{ yandex-cloud }} [IAM token]{% if lang == "ru"%}(https://cloud.yandex.ru/docs/iam/concepts/authorization/iam-token){% endif %}{% if lang == "en" %}(https://cloud.yandex.com/en/docs/iam/concepts/authorization/iam-token){% endif %} from the developer's computer ```ydb::CommandLineYcToken.from_cmd("yc iam create-token")```) | From 1e55d3e214090a92f7247d9051018fbfa5c4be54 Mon Sep 17 00:00:00 2001 From: uslon Date: Mon, 18 Mar 2024 10:28:34 +0300 Subject: [PATCH 4/4] add examples --- ydb/docs/en/core/reference/ydb-sdk/feature-parity.md | 4 ++-- ydb/docs/ru/core/reference/ydb-sdk/feature-parity.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ydb/docs/en/core/reference/ydb-sdk/feature-parity.md b/ydb/docs/en/core/reference/ydb-sdk/feature-parity.md index a59a5b06753e..84164508e1e7 100644 --- a/ydb/docs/en/core/reference/ydb-sdk/feature-parity.md +++ b/ydb/docs/en/core/reference/ydb-sdk/feature-parity.md @@ -124,12 +124,12 @@ | in OpenTracing | \- | ? | \+ | \- | \- | \- | \- | \- | | **Examples** | | Auth | -| \* token | ? | ? | \+ | \+ | \+ | \+ | | \+ | +| \* token | ? | ? | \+ | \+ | \+ | \+ | \+ | \+ | | \* anonymous | ? | ? | \+ | \+ | \+ | \+ | | \+ | | \* environ | ? | ? | \+ | \+ | \+ | \- | | \+ | | \* metadata | ? | ? | \+ | \+ | \+ | \+ | | \+ | | \* service_account | ? | ? | \+ | \+ | \+ | \- | | \+ | -| \* static (username \+ password) | ? | ? | \+ | \+ | \+ | \+ | | \- | +| \* static (username \+ password) | ? | ? | \+ | \+ | \+ | \+ | \+ | \- | | Basic (series) | \+ | ? | \+ | \+ | \+ | \+ | \+ | \+ | | Bulk Upsert | \+/- | ? | \+ | \+ | \+ | \- | | \- | | Containers (Struct,Variant,List,Tuple) | \- | ? | \+ | \- | \- | \- | | \- | diff --git a/ydb/docs/ru/core/reference/ydb-sdk/feature-parity.md b/ydb/docs/ru/core/reference/ydb-sdk/feature-parity.md index e22f14934628..a3c9d0e1b516 100644 --- a/ydb/docs/ru/core/reference/ydb-sdk/feature-parity.md +++ b/ydb/docs/ru/core/reference/ydb-sdk/feature-parity.md @@ -130,7 +130,7 @@ |\* environ|?|?|\+|\+|\+|\-|\-|\+| |\* metadata|?|?|\+|\+|\+|\+|\+|\+| |\* service_account|?|?|\+|\+|\+|\-|\-|\+| -|\* static (username \+ password)|?|?|\+|\+|\+|\+|\-|\+| +|\* static (username \+ password)|?|?|\+|\+|\+|\+|\+|\+| |Basic (series)|\+|?|\+|\+|\+|\+|\+|\+| |Bulk Upsert|\+/-|?|\+|\+|\+|\-|\-|\+| |Containers (Struct,Variant,List,Tuple)|\-|?|\+|\-|\-|\-|\+|\-|