Skip to content

Conversation

@keegancsmith
Copy link
Member

The IAM Auth configuration only needs to be applied to the frontend service(s), not all services requiring database connections. This update:

  • Clarifies that config is only needed for sourcegraph-frontend service
  • Adds missing CODEINTEL_PGHOST variable for completeness
  • Documents AWS_STS_REGIONAL_ENDPOINTS as optional configuration for customers who want to use regional STS endpoints for improved latency and resiliency (common in production AWS deployments)

NOTE: This can only be merged once our backport lands for these improvements https://github.com/sourcegraph/sourcegraph/pull/7825

Amp-Thread-ID: https://ampcode.com/threads/T-27ca9536-a526-45bd-9992-f9011dbf5cff

The IAM Auth configuration only needs to be applied to the frontend
service(s), not all services requiring database connections. This update:

- Clarifies that config is only needed for sourcegraph-frontend service
- Adds missing CODEINTEL_PGHOST variable for completeness
- Documents AWS_STS_REGIONAL_ENDPOINTS as optional configuration for
  customers who want to use regional STS endpoints for improved latency
  and resiliency (common in production AWS deployments)

Amp-Thread-ID: https://ampcode.com/threads/T-27ca9536-a526-45bd-9992-f9011dbf5cff
Co-authored-by: Amp <[email protected]>
@vercel
Copy link

vercel bot commented Nov 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sourcegraph-docs Ready Ready Preview Comment Nov 24, 2025 8:51pm

- For EC2 (docker-compose deployment), use [IAM roles for Amazon EC2](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html)

For [every services that require postgres database connection](https://github.com/sourcegraph/sourcegraph-public-snapshot/blob/main/lib/servicecatalog/service-catalog.yaml), ensure below environment variables are configured:
Configure the following environment variables for the **`sourcegraph-frontend`** service (or all `sourcegraph-frontend-*` services in Docker Compose deployments):
Copy link
Contributor

@marcleblanc2 marcleblanc2 Nov 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to specify migrator as well for Docker Compose, as it's separate

@DaedalusG DaedalusG merged commit f826785 into main Nov 25, 2025
5 checks passed
@DaedalusG DaedalusG deleted the k/doc-updates branch November 25, 2025 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants