Secret Detection: Add Yandex.Cloud secret formats
From @rtimofeev88 in #345453 (comment 827563940); see further discussion in that thread.
Hi to all, I'd love to add Secret Detection token patterns for Yandex.Cloud.
https://cloud.yandex.ru
Yandex.CloudYC_IAM_COOKIE_V1
Regexp c1\.[A-Z0-9a-z_-]+[=]{0,2}\.[A-Z0-9a-z_-]{86}[=]{0,2}
Example
c1.9f7P7fy2m87l9_dXQSMT-u_X3ff3F3AfE_rv19Xp9fOQnoqLl6CMmo2Jmo3t-ZCPmpGWmw==.1jve0Jdy_ZhiQLuWw5A4fZXtaaJXJgdIgLJdd_3JRA79sa1pI9bgZo8-zUx2JQWB9Uf8bb95bNfnReihX6LpDw==
YC_IAM_TOKEN_V1
Regexp t1\.[A-Z0-9a-z_-]+[=]{0,2}\.[A-Z0-9a-z_-]{86}[=]{0,2}
Example
t1.9f7P7fy2m87l9_dXQSMT-u_-3ff3F3AgE_rv_tXu9fickJGMkJOa7ffQj5qRlps=.tMiX952V4Q3T6c5RSBMv6TeZ5DPQHT4hbBR9EgUNvApjK_gi8OMEkzekju512LkR6figaq-P5fI2_i82pBx8Bg==
YC_IAM_API_KEY_V1_RU_CENTRAL1
Regexp AQVN[A-Za-z0-9_\-]{35,38}
Example
AQVN0x35bd5AgbWb6f4WpwEW0_2f4sYy5aH5Z_aM,
AQVN2dKlgqLGcHhM7wPfpCTfr5m8tqNn8sz_-i_t,
AQVN2lYyE68TnCTdfTf5VbXn_1e9TtA-sR-kerXE
Additionally, we have OAuth token with regexp [A-Za-z0-9_\-]{39}
, but this expression is very wide and gives a lot of false-positive hits. We also have some prevalidation code, so could we share it with you for using?