Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

feat/sg-msp-pg: add suggestion to check msp-ops page on perms error#63118

Merged
bobheadxi merged 1 commit into
mainfrom
sg-pg-error-help
Jun 6, 2024
Merged

feat/sg-msp-pg: add suggestion to check msp-ops page on perms error#63118
bobheadxi merged 1 commit into
mainfrom
sg-pg-error-help

Conversation

@bobheadxi

@bobheadxi bobheadxi commented Jun 6, 2024

Copy link
Copy Markdown
Member

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.

@cla-bot cla-bot Bot added the cla-signed label Jun 6, 2024
@bobheadxi bobheadxi requested review from a team, DaedalusG and jdpleiness June 6, 2024 01:34
@bobheadxi bobheadxi merged commit 6302955 into main Jun 6, 2024
@bobheadxi bobheadxi deleted the sg-pg-error-help branch June 6, 2024 01:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants