Skip to content

Tags: skytreader/sourcegraph

Tags

app-v2023.6.28+1331.1867679b11

Toggle app-v2023.6.28+1331.1867679b11's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
dotcom/productsubscription: allow SA to do license key lookup (source…

…graph#54399)

This is required for upcoming Cloud automation:
sourcegraph/controller#805

Currently we can't do the lookup:

```
ERROR mi2.instance.check.enforce.Enforce.cody mi2/instance.go:511 error encountered {"TraceId": "03e4d62c01a89c6a62e5d2e8f1cb6df6", "SpanId": "98bf6654fdf74de6", "environment": "prod", "instance": "src-96ed006bb45d673944e4", "error": "GetEmbeddingsIndexerToken: getSubscription: GetProductSubscriptionByLicense: input: dotcom.productLicenses must be site admin"}
```

## Test plan

unit tests on the `serviceAccountOrSiteAdmin` helper