{"id":39076422,"url":"https://github.com/cloud-gov/intranet-demo","last_synced_at":"2026-01-17T18:27:01.122Z","repository":{"id":250797713,"uuid":"835503040","full_name":"cloud-gov/intranet-demo","owner":"cloud-gov","description":"A private intranet application you can host on cloud.gov using Cloud Foundry's Route Service feature.","archived":false,"fork":false,"pushed_at":"2025-05-22T22:18:11.000Z","size":20,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-22T23:39:22.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloud-gov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-30T01:22:00.000Z","updated_at":"2025-02-19T17:38:03.000Z","dependencies_parsed_at":"2024-11-08T21:24:41.536Z","dependency_job_id":"bc65b01d-1e9e-4127-8cb7-845a86ca6a04","html_url":"https://github.com/cloud-gov/intranet-demo","commit_stats":null,"previous_names":["cloud-gov/intranet-demo"],"tags_count":0,"template":false,"template_full_name":"cloud-gov/.github","purl":"pkg:github/cloud-gov/intranet-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-gov%2Fintranet-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-gov%2Fintranet-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-gov%2Fintranet-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-gov%2Fintranet-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloud-gov","download_url":"https://codeload.github.com/cloud-gov/intranet-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-gov%2Fintranet-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28515477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T17:57:59.192Z","status":"ssl_error","status_checked_at":"2026-01-17T17:57:52.527Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-17T18:27:00.445Z","updated_at":"2026-01-17T18:27:01.105Z","avatar_url":"https://github.com/cloud-gov.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\nThis project demonstrates hosting a private intranet application on cloud.gov using Cloud Foundry's Route Service feature.\n\n```mermaid\nflowchart LR\n    subgraph \"Cloud.gov\"\n        direction LR\n        lb[\"Load Balancers\"]\n        rtr[\"Routers\"]\n        proxy[\"Proxy (IP filtering Route Service)\"]\n        app[\"Intranet application\"]\n\n        lb --\u003e rtr\n        rtr --\u003e proxy\n        proxy --\u003e app\n    end\n```\n\n## Requirements\n\nInstall and log into the [Cloud Foundry CLI](https://docs.cloudfoundry.org/cf-cli/install-go-cli.html).\n\n## Usage\n\nCreate a space for the project and enable public networks egress:\n\n```sh\ncf target -o your-org\ncf create-space your-space\n\n# WARNING: This allows outbound traffic from your space to the public internet.\n# In cloud.gov, this is disabled by default.\ncf bind-security-group public_networks_egress your-org --space your-space\n```\n\nDeploy the project to your space using the `deploy.sh` script:\n\n```sh\nALLOWED_IPS=\"comma_separated_list_of_ips_eg_1.2.3.4,5.6.7.8\" \\\nROUTE_SERVICE_APP_NAME=\"name_of_the_app_to_push\" \\\nROUTE_SERVICE_NAME=\"name_of_the_route_service_to_create\" \\\nPROTECTED_APP_NAME=\"name_of_the_app_to_protect\" \\\n./deploy.sh\n```\n\nFor example:\n\n```sh\nALLOWED_IPS=\"1.2.3.4,5.6.7.8/32\" \\\nROUTE_SERVICE_APP_NAME=\"intranet-proxy\" \\\nROUTE_SERVICE_NAME=\"intranet-proxy\" \\\nPROTECTED_APP_NAME=\"intranet-app\" \\\n./deploy.sh\n```\n\n### Checking that it works\n\nThe route service exposes two paths for checking the status.\n\nThe path `/_route-service-health` is for information and health checking, and has stats about the number of active connections which exist.\n\nThe path `/_route-service-check` is for checking if you may use the route service. If you are, then you will receive `OK`, if you are not you will received `Forbidden by ((app-name))`, where `((app-name))` is the value of the `APP_NAME` environment variable.\n\n## Components\n\n### Proxy\n\nThe `intranet-proxy` application is a reverse proxy with IP address filtering, built using the nginx buildpack. It is based on the [alphagov/paas-ip-authentication-route-service](https://github.com/alphagov/paas-ip-authentication-route-service) project, with some modifications to work well on cloud.gov. See comments in `proxy/nginx.conf` for details.\n\n### App\n\nThe `intranet-app` application is a simple Go web server based on the `go-hello` application from [cloud-gov/cf-hello-worlds](https://github.com/cloud-gov/cf-hello-worlds). Other applications will work similarly, as long as they answer HTTP requests on the default port.\n\n## Notes\n\n- nginx is not a requirement; any reverse proxy could be used as a route service. An nginx buildpack is built in to cloud.gov, but other proxies are supported using the apt buildpack, binary buildpack, a Docker image, or building from source.\n\n## Further reading\n\n- [Cloud Foundry: Route Services](https://docs.cloudfoundry.org/services/route-services.html)\n- [Cloud.gov: Controlling Egress Traffic](https://cloud.gov/docs/management/space-egress/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-gov%2Fintranet-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloud-gov%2Fintranet-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-gov%2Fintranet-demo/lists"}