local_ydb_write_dynamic_auth_config
Write the dynamic-node auth token file to enable YDB mandatory-auth startup after choosing a SID. Set confirm=true to apply the write, or omit it to preview the planned change.
Instructions
Write the text-proto dynamic-node auth token file needed for mandatory-auth startup. Use after choosing the SID for auth hardening; without confirm=true this returns the planned file write only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | No | SID to store in both StaffApiUserToken and NodeRegistrationToken. | |
| confirm | No | Must be true to write the dynamic-node auth token file. Omit or false for plan-only output. | |
| profile | No | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. | |
| configPath | No | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. | |
| tokenHostPath | No | Host path for the generated text-proto auth token file. Defaults to profile.dynamicNodeAuthTokenFile when present. |