What OpenSRE reads
Once the folder is connected, an investigation can reach:
The last row matters more than it looks: OpenSRE ships an index of every read
endpoint the Yandex Cloud API exposes, so a service without a dedicated tool is
still reachable. Audit Trails is in that index, so trails and their settings are
readable now; the audit events are not, because Yandex delivers them to a sink
rather than through the API.
Reading log entries needs one extra package. Cloud Logging is the only
Yandex Cloud read with no REST endpoint, so it uses Yandex’s gRPC stubs:
yc command for you to run.
What you need
A folder ID. Every Yandex Cloud read is folder-scoped — the Monitoring API rejects cross-folder queries outright — so nothing works without it. Take it from the console URL, or run:
Or nothing at all. Running on a Yandex Cloud VM with an attached service
account, the instance metadata service issues tokens and already knows the
folder. Choose that mode and there is nothing to type or store.
Permissions
Grant the service accountviewer on the folder. OpenSRE only reads: the
client sends GET and nothing else, and every mutating Yandex Cloud API uses a
different verb.
Connect
Environment variables
Setting these connects the integration without running the wizard — useful in a container or CI job. SupplyYC_FOLDER_ID plus exactly one credential.
The names match the ones the
yc CLI already reads, so a shell that can run
yc can run OpenSRE without a second set of exports.
Troubleshooting
“Yandex Cloud needs a folder_id”. The folder is missing and the credential is not the metadata service. SetYC_FOLDER_ID, or choose the instance
metadata mode when running on a VM.
Verification fails with a permission error. The service account has no
viewer on that folder — check that the role was granted on the folder you
configured, not on a different one.
”… is not a documented read of …”. The generic reader only sends paths the
endpoint index lists, which is what keeps it to reads. A path that is not in the
index is refused before any request goes out, even when it looks right. Ask for
the path instead of typing one:
YC_SA_KEY_FILE must point at the authorized
key JSON produced by yc iam key create, readable by the user running OpenSRE.