René's URL Explorer Experiment


Title: fix(forge-server): configurable CORS allowlist, asymmetric-only JWKS verification & shared HTTP client · Issue #262 · elcode-id/elcode-forge · GitHub

Open Graph Title: fix(forge-server): configurable CORS allowlist, asymmetric-only JWKS verification & shared HTTP client · Issue #262 · elcode-id/elcode-forge

X Title: fix(forge-server): configurable CORS allowlist, asymmetric-only JWKS verification & shared HTTP client · Issue #262 · elcode-id/elcode-forge

Description: Part of #256. Scope Add cors_allowed_origins: Vec to ServerConfig (crates/forge-server/src/config.rs), configurable via EFORGE_CORS_ALLOWED_ORIGINS (defaulting to local dashboard origins instead of wildcard *, while still support...

Open Graph Description: Part of #256. Scope Add cors_allowed_origins: Vec to ServerConfig (crates/forge-server/src/config.rs), configurable via EFORGE_CORS_ALLOWED_ORIGINS (defaulting to local dashboard origins in...

X Description: Part of #256. Scope Add cors_allowed_origins: Vec<String> to ServerConfig (crates/forge-server/src/config.rs), configurable via EFORGE_CORS_ALLOWED_ORIGINS (defaulting to local dashboard orig...

Opengraph URL: https://github.com/elcode-id/elcode-forge/issues/262

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(forge-server): configurable CORS allowlist, asymmetric-only JWKS verification & shared HTTP client","articleBody":"Part of #256.\n\n## Scope\n- Add `cors_allowed_origins: Vec\u003cString>` to `ServerConfig` (`crates/forge-server/src/config.rs`), configurable via `EFORGE_CORS_ALLOWED_ORIGINS` (defaulting to local dashboard origins instead of wildcard `*`, while still supporting explicit `*` when configured).\n- Replace unconditional `CorsLayer::permissive()` in `crates/forge-server/src/app.rs` with configurable `CorsLayer` driven by `state.config.cors_allowed_origins`.\n- Harden `JwksCache` in `crates/forge-server/src/auth/jwks.rs`:\n  1. Reuse a persistent `reqwest::Client` field instead of creating one per request.\n  2. Restrict remote JWKS URLs to `https://` or explicit loopback `http://` (`localhost`, `127.0.0.1`, `[::1]`) to mitigate SSRF.\n  3. Reject symmetric algorithms (`HS256`/`HS384`/`HS512`) and symmetric `jwk.k` keys in `verify_token` to prevent algorithm-confusion attacks, and always enforce `validation.validate_exp = true`.\n\n## Out of scope\n- Changing SQLite/PostgreSQL database migrations or API endpoint paths.\n\n## Acceptance criteria\n- Tokens signed with symmetric algorithms (`HS256`) or non-RSA JWKs are rejected with `401 Unauthorized` (`ServerError::Auth`).\n- Non-HTTPS, non-loopback JWKS fetch URLs are rejected safely before making outbound HTTP requests.\n- `forge-server` CORS responds according to `EFORGE_CORS_ALLOWED_ORIGINS` rather than permissive wildcard by default.\n- All `forge-server` unit and integration tests pass.\n\n## Technical notes\n- Use `tower_http::cors::AllowOrigin::list(...)` for parsed `HeaderValue` origins and explicit `AllowMethods` / `AllowHeaders`.\n- Restrict accepted JWKS token header algorithms to `Algorithm::RS256 | Algorithm::RS384 | Algorithm::RS512`.\n\n## Dependencies\n- Part of #256 (independent leaf crate hardening in `forge-server`).\n\n## Definition of Done\n- [ ] Implementation completed in `crates/forge-server/src/{config.rs,app.rs,auth/jwks.rs}`.\n- [ ] Unit/integration tests cover symmetric JWKS rejection, SSRF URL validation, and CORS allowlist config.\n- [ ] Tier 1 CI verification passes (`cargo fmt -p forge-server -- --check`, `cargo clippy -p forge-server --all-targets -- -D warnings`, `cargo test -p forge-server`).\n- [ ] `docs/ARCHITECTURE_STATE.md` updated and PR squash-merged to `develop` after 100% green CI.\n","author":{"url":"https://github.com/luksluki","@type":"Person","name":"luksluki"},"datePublished":"2026-11-17T05:25:56Z","url":"https://github.com/elcode-id/elcode-forge/issues/262"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f723f88a-74a8-8c87-dad7-b8e18709eda3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD16A:B4606:198075D:235EC07:6B0593E3
html-safe-nonce957d2274360e40e62b09ab93a2128e6b4076ce24a332a2e9bf5567d024253f98
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTZBOkI0NjA2OjE5ODA3NUQ6MjM1RUMwNzo2QjA1OTNFMyIsInZpc2l0b3JfaWQiOiI4Mzk5Mzk1MzUzMzI1MzEwOTQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac89d58bee052e0f3c5f9ed3f91d92d951940d62effcabf8f4e58c6437158d3a60
hovercard-subject-tagissue:6438045394
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/elcode-id/elcode-forge/262/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a33554d29c4352b31ad3c2e154251b97fb50b89e498b5006d90b2bbbb234f5cc/elcode-id/elcode-forge/issues/262
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a33554d29c4352b31ad3c2e154251b97fb50b89e498b5006d90b2bbbb234f5cc/elcode-id/elcode-forge/issues/262
og:image:altPart of #256. Scope Add cors_allowed_origins: Vec to ServerConfig (crates/forge-server/src/config.rs), configurable via EFORGE_CORS_ALLOWED_ORIGINS (defaulting to local dashboard origins in...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameluksluki
hostnamegithub.com
expected-hostnamegithub.com
None3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f
turbo-cache-controlno-preview
go-importgithub.com/elcode-id/elcode-forge git https://github.com/elcode-id/elcode-forge.git
octolytics-dimension-user_id337957755
octolytics-dimension-user_loginelcode-id
octolytics-dimension-repository_id1423983661
octolytics-dimension-repository_nwoelcode-id/elcode-forge
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1423983661
octolytics-dimension-repository_network_root_nwoelcode-id/elcode-forge
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release58e2bd32336f3dcee343ec627a4d09c7c444e214
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/elcode-id/elcode-forge/issues/262#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Felcode-id%2Felcode-forge%2Fissues%2F262
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Felcode-id%2Felcode-forge%2Fissues%2F262
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=elcode-id%2Felcode-forge
Reloadhttps://github.com/elcode-id/elcode-forge/issues/262
Reloadhttps://github.com/elcode-id/elcode-forge/issues/262
Reloadhttps://github.com/elcode-id/elcode-forge/issues/262
elcode-idhttps://github.com/elcode-id
elcode-forgehttps://github.com/elcode-id/elcode-forge
Codehttps://github.com/elcode-id/elcode-forge
Issueshttps://github.com/elcode-id/elcode-forge/issues
Pull requestshttps://github.com/elcode-id/elcode-forge/pulls
Actionshttps://github.com/elcode-id/elcode-forge/actions
Projectshttps://github.com/elcode-id/elcode-forge/projects
Security and qualityhttps://github.com/elcode-id/elcode-forge/security
Insightshttps://github.com/elcode-id/elcode-forge/insights
https://github.com/elcode-id/elcode-forge
New issuehttps://github.com/login?return_to=https://github.com/elcode-id/elcode-forge/issues/262
New issuehttps://github.com/login?return_to=https://github.com/elcode-id/elcode-forge/issues/262
fix(forge-server): configurable CORS allowlist, asymmetric-only JWKS verification & shared HTTP clienthttps://github.com/elcode-id/elcode-forge/issues/262#top
bughttps://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22bug%22
forge-securityhttps://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22forge-security%22
forge-serverhttps://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22forge-server%22
phase-11https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22phase-11%22
wave-2https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22wave-2%22
https://github.com/luksluki
lukslukihttps://github.com/luksluki
on Nov 17, 2026https://github.com/elcode-id/elcode-forge/issues/262#issue-6438045394
#256https://github.com/elcode-id/elcode-forge/issues/256
[EPIC] Phase 11 (v1.2.0): Deep Static Analysis Precision, Live OSV Intelligence & Production Hardening #256https://github.com/elcode-id/elcode-forge/issues/256
lukslukihttps://github.com/luksluki
bughttps://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22bug%22
wave-2https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22wave-2%22
forge-securityhttps://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22forge-security%22
forge-serverhttps://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22forge-server%22
phase-11https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22phase-11%22
on Nov 17, 2026https://github.com/elcode-id/elcode-forge/issues/262#event-36367975228
lukslukihttps://github.com/luksluki
on Nov 17, 2026https://github.com/elcode-id/elcode-forge/issues/262#event-36372453110
fix(forge-server): configurable CORS allowlist, asymmetric-only JWKS …https://github.com/elcode-id/elcode-forge/commit/700f39645fb930ace35d5229ed9dcff05df4567e
https://docs.github.com/articles/closing-issues-via-commit-messages
700f396https://github.com/elcode-id/elcode-forge/commit/700f39645fb930ace35d5229ed9dcff05df4567e
lukslukihttps://github.com/luksluki
completedhttps://github.com/elcode-id/elcode-forge/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
700f396https://github.com/elcode-id/elcode-forge/commit/700f39645fb930ace35d5229ed9dcff05df4567e
on Nov 17, 2026https://github.com/elcode-id/elcode-forge/issues/262#event-36373573952
Sign up for freehttps://github.com/signup?return_to=https://github.com/elcode-id/elcode-forge/issues/262
Sign in to commenthttps://github.com/login?return_to=https://github.com/elcode-id/elcode-forge/issues/262
bughttps://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22bug%22
forge-securityhttps://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22forge-security%22
forge-serverhttps://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22forge-server%22
phase-11https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22phase-11%22
wave-2https://github.com/elcode-id/elcode-forge/issues?q=state%3Aopen%20label%3A%22wave-2%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.