-
Notifications
You must be signed in to change notification settings - Fork 0
[LFXV2-1280] Improve local development documentation and move config inline to source files #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
1be63da
docs: add local development helm install instructions with secret setup
andrest50 74874c3
docs: improve local dev docs and move config inline to source files
andrest50 a289856
fix: align ITX_AUTH0_DOMAIN to dev tenant and always validate ITX cre…
andrest50 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # LFX V2 Survey Service — Local Development Environment | ||
| # Copy this file to .env and fill in the required values. | ||
| # The .env file is gitignored and will never be committed. | ||
| # | ||
| # Quickstart: set the LOCAL DEV OVERRIDES below, get ITX credentials from | ||
| # 1Password (LFX V2 vault -> LFX Platform Chart Values Secrets - Local Development), then run: | ||
| # source .env && make run | ||
|
|
||
| # ============================================================================= | ||
| # SERVER | ||
| # ============================================================================= | ||
|
|
||
| export PORT=8080 | ||
| export LOG_LEVEL=debug | ||
| # Add source file and line number to log output | ||
| export LOG_ADD_SOURCE=true | ||
|
|
||
| # ============================================================================= | ||
| # AUTHENTICATION (Heimdall JWT) | ||
| # ============================================================================= | ||
|
|
||
| export JWKS_URL=http://heimdall:4457/.well-known/jwks | ||
| # Must match the audience claim in incoming JWTs | ||
| export AUDIENCE=lfx-v2-survey-service | ||
|
|
||
| # LOCAL DEV OVERRIDE: set to any string to skip JWT validation entirely. | ||
| # Remove or leave empty in non-local environments. | ||
| export JWT_AUTH_DISABLED_MOCK_LOCAL_PRINCIPAL=test-user@example.com | ||
|
|
||
| # ============================================================================= | ||
| # ITX PROXY — credentials required to call the ITX API | ||
| # Find these in 1Password: Linux Foundation org -> LFX V2 vault -> | ||
| # "LFX Platform Chart Values Secrets - Local Development" (secure note). | ||
| # Store the private key at tmp/local.private.key (gitignored). | ||
| # ============================================================================= | ||
|
|
||
| export ITX_BASE_URL=https://api.dev.itx.linuxfoundation.org/ | ||
| export ITX_AUTH0_DOMAIN=linuxfoundation-dev.auth0.com | ||
| # Auth0 API audience for ITX M2M token requests | ||
| export ITX_AUDIENCE=https://api.dev.itx.linuxfoundation.org/ | ||
|
|
||
| # REQUIRED — see 1Password note above | ||
| export ITX_CLIENT_ID= | ||
| # RSA private key in raw PEM format (not base64-encoded) | ||
| export ITX_CLIENT_PRIVATE_KEY= | ||
|
|
||
| # To load the key from a file instead of inlining it, run: | ||
| # export ITX_CLIENT_PRIVATE_KEY="$(cat tmp/local.private.key)" | ||
|
|
||
| # ============================================================================= | ||
| # NATS / ID MAPPING | ||
| # ============================================================================= | ||
|
|
||
| # Default assumes the lfx-platform Helm chart is running locally. | ||
| # Override with nats://localhost:4222 if your NATS server is on that port instead. | ||
| export NATS_URL=nats://lfx-platform-nats.lfx.svc.cluster.local:4222 | ||
|
|
||
| # LOCAL DEV OVERRIDE: set to true to skip NATS ID mapping (no NATS needed). | ||
| export ID_MAPPING_DISABLED=true | ||
|
|
||
| # ============================================================================= | ||
| # EVENT PROCESSING | ||
| # Consumes NATS JetStream events to sync v1 survey data to the v2 indexer and FGA. | ||
| # See docs/event-processing.md for details. | ||
| # ============================================================================= | ||
|
|
||
| # LOCAL DEV OVERRIDE: set to false to skip NATS event processing (no NATS needed). | ||
| export EVENT_PROCESSING_ENABLED=false | ||
|
|
||
| # JetStream consumer name — must be unique per service instance | ||
| export EVENT_CONSUMER_NAME=survey-service-kv-consumer | ||
| # JetStream stream to consume from | ||
| export EVENT_STREAM_NAME=KV_v1-objects |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Copyright The Linux Foundation and each contributor to LFX. | ||
| # SPDX-License-Identifier: MIT | ||
| --- | ||
| # Image configuration | ||
| image: | ||
| repository: linuxfoundation/lfx-v2-survey-service | ||
| tag: "" # Overrides appVersion from Chart.yaml | ||
| pullPolicy: IfNotPresent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.