Skip to content

Commit 0475198

Browse files
uslonuslon
and
uslon
authored
Add Static Credentials for Rust SDK to the docs (#2824)
Co-authored-by: uslon <[email protected]>
1 parent ee5c3aa commit 0475198

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

ydb/docs/en/core/reference/ydb-sdk/_includes/auth.md

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ You can click any of the methods below to go to the source code of an example in
6666
| Anonymous | ydb::StaticToken("") |
6767
| Access Token | ydb::StaticToken(token) |
6868
| Metadata | ydb::GCEMetadata, ydb::YandexMetadata |
69+
| Static Credentials | [ydb::StaticCredentialsAuth](https://github.com/ydb-platform/ydb-rs-sdk/blob/master/ydb/examples/auth-static-credentials.rs) |
6970
| Service Account Key | not supported |
7071
| Determined by environment variables | not supported |
7172
| 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")```) |

ydb/docs/en/core/reference/ydb-sdk/feature-parity.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
| Load balancing across all nodes of all local DCs | \+ | \+ | \+ | ? | \- | \- | \- |
2323
| **Credentials providers** |
2424
| Anonymous (default) | \+ | \+ | \+ | \+ | \+ | \+ | \+ | \+ |
25-
| Static (user - password) | \+ | \+ | \+ | \+ | \- | \- | \- | \- |
25+
| Static (user - password) | \+ | \+ | \+ | \+ | \- | \- | \+ | \- |
2626
| Token: IAM, OAuth | \+ | \+ | \+ | \+ | \+ | \+ | \+ | \+ |
2727
| Service account (Yandex.Cloud specific) | \+ | \+ | \+ | \+ | \+ | \+ | \- | \+ |
2828
| Metadata (Yandex.Cloud specific) | \+ | \+ | \+ | \+ | \+ | \+ | \+ | \+ |
@@ -124,12 +124,12 @@
124124
| in OpenTracing | \- | ? | \+ | \- | \- | \- | \- | \- |
125125
| **Examples** |
126126
| Auth |
127-
| \* token | ? | ? | \+ | \+ | \+ | \+ | | \+ |
127+
| \* token | ? | ? | \+ | \+ | \+ | \+ | \+ | \+ |
128128
| \* anonymous | ? | ? | \+ | \+ | \+ | \+ | | \+ |
129129
| \* environ | ? | ? | \+ | \+ | \+ | \- | | \+ |
130130
| \* metadata | ? | ? | \+ | \+ | \+ | \+ | | \+ |
131131
| \* service_account | ? | ? | \+ | \+ | \+ | \- | | \+ |
132-
| \* static (username \+ password) | ? | ? | \+ | \+ | \+ | \+ | | \- |
132+
| \* static (username \+ password) | ? | ? | \+ | \+ | \+ | \+ | \+ | \- |
133133
| Basic (series) | \+ | ? | \+ | \+ | \+ | \+ | \+ | \+ |
134134
| Bulk Upsert | \+/- | ? | \+ | \+ | \+ | \- | | \- |
135135
| Containers (Struct,Variant,List,Tuple) | \- | ? | \+ | \- | \- | \- | | \- |

ydb/docs/ru/core/reference/ydb-sdk/_includes/auth.md

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
Access Token | ydb::StaticToken(token)
6868
Metadata | ydb::GCEMetadata, ydb::YandexMetadata
6969
Service Account Key | не поддерживается
70+
Static Credentials | [ydb::StaticCredentialsAuth](https://github.com/ydb-platform/ydb-rs-sdk/blob/master/ydb/examples/auth-static-credentials.rs)
7071
Определяется по переменным окружения | не поддерживается
7172
Выполнение внешней команды | 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")```)
7273

ydb/docs/ru/core/reference/ydb-sdk/feature-parity.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
|Балансировка среди всех нод всех локального ДЦ|\+|\+|\+|?|\-|\-|\-||
2424
|**Credentials providers**|||||||||
2525
|Anonymous (по умолчанию)|\+|\+|\+|\+|\+|\+|\+|\+|
26-
|Static (user - password)|\+|\+|\+|\+|\-|\-|\-|\+|
26+
|Static (user - password)|\+|\+|\+|\+|\-|\-|\+|\+|
2727
|Token: IAM, OAuth|\+|\+|\+|\+|\+|\+|\+|\+|
2828
|Service account (Yandex.Cloud specific)|\+|\+|\+|\+|\+|\+|\-|\+|
2929
|Metadata (Yandex.Cloud specific)|\+|\+|\+|\+|\+|\+|\+|\+|
@@ -130,7 +130,7 @@
130130
|\* environ|?|?|\+|\+|\+|\-|\-|\+|
131131
|\* metadata|?|?|\+|\+|\+|\+|\+|\+|
132132
|\* service_account|?|?|\+|\+|\+|\-|\-|\+|
133-
|\* static (username \+ password)|?|?|\+|\+|\+|\+|\-|\+|
133+
|\* static (username \+ password)|?|?|\+|\+|\+|\+|\+|\+|
134134
|Basic (series)|\+|?|\+|\+|\+|\+|\+|\+|
135135
|Bulk Upsert|\+/-|?|\+|\+|\+|\-|\-|\+|
136136
|Containers (Struct,Variant,List,Tuple)|\-|?|\+|\-|\-|\-|\+|\-|

0 commit comments

Comments
 (0)