{"id":22268211,"url":"https://github.com/curityio/istio-demo-installation","last_synced_at":"2025-03-25T14:45:48.955Z","repository":{"id":74437496,"uuid":"361753156","full_name":"curityio/istio-demo-installation","owner":"curityio","description":"Running the Curity Identity Server in a service mesh within a Kubernetes cluster","archived":false,"fork":false,"pushed_at":"2023-03-28T12:53:47.000Z","size":2703,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-30T13:31:37.890Z","etag":null,"topics":["deployment","helm","istio","kubernetes","service-mesh"],"latest_commit_sha":null,"homepage":"https://curity.io/resources/learn/istio-demo-installation/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/curityio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-26T13:05:42.000Z","updated_at":"2023-04-27T09:56:38.000Z","dependencies_parsed_at":"2024-12-03T11:12:01.577Z","dependency_job_id":"59bffc8e-a896-46d3-8647-6707bb76d6a8","html_url":"https://github.com/curityio/istio-demo-installation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fistio-demo-installation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fistio-demo-installation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fistio-demo-installation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fistio-demo-installation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curityio","download_url":"https://codeload.github.com/curityio/istio-demo-installation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245486240,"owners_count":20623239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["deployment","helm","istio","kubernetes","service-mesh"],"created_at":"2024-12-03T11:11:54.497Z","updated_at":"2025-03-25T14:45:48.922Z","avatar_url":"https://github.com/curityio.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Curity Identity Server in an Istio Service Mesh\n\n[![Quality](https://img.shields.io/badge/quality-demo-red)](https://curity.io/resources/code-examples/status/)\n[![Availability](https://img.shields.io/badge/availability-source-blue)](https://curity.io/resources/code-examples/status/)\n\nA deployment code example where the Curity Identity Server runs alongside an Istio sidecar.\\\nThis provides a deployment option where no internal SSL certificates are needed.\\\nThe platform then ensures that mutual TLS is used, for OAuth requests inside the cluster.\n\n## Cloud Deployments\n\nThis is a development setup, but the Istio behaviors can be easily adapted to any cloud system.\\\nTo do so, follow one of the following tutorials to update the resources in the `cluster` folder:\n\n- [Deploy to Google Kubernetes Engine (GKE)](https://curity.io/resources/learn/kubernetes-gke-idsvr-kong-phantom/)\n- [Deploy to Elastic Kubernetes Service (EKS)](https://curity.io/resources/learn/kubernetes-aws-eks-idsvr-deployment/)\n- [Deploy to Azure Kubernetes Service (AKS)](https://curity.io/resources/learn/kubernetes-azure-aks-idsvr-deployment/)\n\n## Prerequisites\n\nTo deploy the development example, ensure that these tools are installed on your local computer:\n\n- [Docker](https://www.docker.com/products/docker-desktop)\n- [Kubernetes in Docker (KIND)](https://kind.sigs.k8s.io/docs/user/quick-start/)\n- [Helm](https://helm.sh/docs/intro/install/)\n- [openssl](https://www.openssl.org/)\n\n## Deploy the System\n\nRun the install script to create the cluster and deploy components:\n\n```bash\n./install.sh\n```\n\nThen edit the `/etc/hosts` file and add the following entries:\n\n```bash\n127.0.0.1  login.curity.local admin.curity.local\n```\n\nAlso add the following external root certificate to your system's certificate trust store:\n\n```text\n./cluster/ingress-certificates/curity.external.ca.pem\n```\n\nLater, when you are finished testing, tear down the cluster with this command:\n\n```bash\n./uninstall.sh\n```\n\n## Use the Admin UI\n\nOnce deployment has completed, login to the Admin UI and complete the initial setup wizard.\\\nDo so by uploading a `license.json` file, then accepting all default options.\n\n- URL: https://admin.curity.local/admin\n- User: admin\n- Password: Password1\n\n## Run OAuth Requests Inside the Cluster\n\nThe deployment also includes the [Istio sleep example](https://github.com/istio/istio/blob/master/samples/sleep/sleep.yaml).\\\nThis will act as an application pod that calls endpoints of the Curity Identity Server:\n\n```bash\nAPPLICATION_POD=\"$(kubectl -n applications get pod -o name)\"\n```\n\nCall the Curity Identity Server with an internal OAuth request that uses mutual TLS.\\\nNote that the microservice uses only a plain HTTP URL:\n\n```bash\nkubectl -n applications exec $APPLICATION_POD -- \\\n  curl -s http://curity-idsvr-runtime-svc.curity:8443/oauth/v2/oauth-anonymous/jwks\n```\n\nRun this command to show the server X509 identity for connections to the Curity Identity Server:\n\n```bash\nkubectl -n applications exec $APPLICATION_POD -c istio-proxy \\\n     -- openssl s_client -showcerts \\\n     -connect curity-idsvr-runtime-svc.curity:8443 \\\n     -CAfile /var/run/secrets/istio/root-cert.pem 2\u003e/dev/null | \\\n     openssl x509 -in /dev/stdin -text -noout\n```\n\nThe response includes the SPIFFE identity:\n\n```text\nX509v3 Subject Alternative Name: \n  URI:spiffe://cluster.local/ns/curity/sa/curity-idsvr-service-account\n```\n\n## More Information\n\n- See the [Istio Tutorial](https://curity.io/resources/learn/istio-demo-installation) on the Curity website for further details about this deployment.\n- Please visit [curity.io](https://curity.io/) for more information about the Curity Identity Server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fistio-demo-installation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurityio%2Fistio-demo-installation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fistio-demo-installation/lists"}