mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 20:11:54 +00:00
I think finding the right permissions confuses people pretty often when first interacting with MSP. This adds a helper for annotating errors returned from points where we might be able to help out @DaedalusG, specifically for the situation in https://sourcegraph.slack.com/archives/C05GJPTSZCZ/p1717629546727829 😉 ## Test plan It's a little wordy but: ``` sg msp pg connect sams prod ❌ possible permissions error, ensure you have the prerequisite Entitle grants mentioned in https://sourcegraph.notion.site/3e59b9ac3d414a5f8fb5911eed1e418a: find IAM output: gcloud: failed to access secret "iam_operator_access_service_account" from "sams-prod-ywuz": rpc error: code = PermissionDenied desc = Permission 'secretmanager.versions.access' denied for resource 'projects/sams-prod-ywuz/secrets/iam_operator_access_service_account/versions/latest' (or it may not exist). ``` ## Changelog - `sg msp pg connect` will tell you about your service's generated Notion page if you run into a permissions-looking error during command setup, where there is guidance about the required Entitle requests. |
||
|---|---|---|
| .. | ||
| buf | ||
| ci | ||
| cloudsqlproxy | ||
| dependencies | ||
| internal | ||
| interrupt | ||
| linters | ||
| msp | ||
| root | ||
| sams | ||
| .gitignore | ||
| analytics.go | ||
| bootstrap.sh | ||
| BUILD.bazel | ||
| checks.go | ||
| Dockerfile | ||
| generates.go | ||
| live.go | ||
| main_test.go | ||
| main.go | ||
| os.go | ||
| OWNERS | ||
| README.md | ||
| sg_analytics.go | ||
| sg_audit.go | ||
| sg_backport.go | ||
| sg_bazel.go | ||
| sg_cloud.go | ||
| sg_db.go | ||
| sg_deploy.go | ||
| sg_doctor.go | ||
| sg_embeddings_qa.go | ||
| sg_generate.go | ||
| sg_help.go | ||
| sg_images_test.go | ||
| sg_images.go | ||
| sg_insights.go | ||
| sg_install.go | ||
| sg_lint.go | ||
| sg_live.go | ||
| sg_logo.go | ||
| sg_migration.go | ||
| sg_monitoring.go | ||
| sg_ops.go | ||
| sg_page.go | ||
| sg_rfc.go | ||
| sg_run.go | ||
| sg_secret.go | ||
| sg_security.go | ||
| sg_setup.go | ||
| sg_src.go | ||
| sg_start_test.go | ||
| sg_start.go | ||
| sg_teammate.go | ||
| sg_telemetry.go | ||
| sg_tests.go | ||
| sg_update.go | ||
| sg_version.go | ||
| sg_wolfi.go | ||
| sg.config.example.yaml | ||
| sg.doctor.yaml | ||
| VISION.md | ||
sg - the Sourcegraph developer tool
_____ _____
/\ \ /\ \
/::\ \ /::\ \
/::::\ \ /::::\ \
/::::::\ \ /::::::\ \
/:::/\:::\ \ /:::/\:::\ \
/:::/__\:::\ \ /:::/ \:::\ \
\:::\ \:::\ \ /:::/ \:::\ \
___\:::\ \:::\ \ /:::/ / \:::\ \
/\ \:::\ \:::\ \ /:::/ / \:::\ ___\
/::\ \:::\ \:::\____\/:::/____/ ___\:::| |
\:::\ \:::\ \::/ /\:::\ \ /\ /:::|____|
\:::\ \:::\ \/____/ \:::\ /::\ \::/ /
\:::\ \:::\ \ \:::\ \:::\ \/____/
\:::\ \:::\____\ \:::\ \:::\____\
\:::\ /:::/ / \:::\ /:::/ /
\:::\/:::/ / \:::\/:::/ /
\::::::/ / \::::::/ /
\::::/ / \::::/ /
\::/ / \::/____/
\/____/
sg is the CLI tool that Sourcegraph developers can use to develop Sourcegraph.
Learn more about it here.