{"id":20695644,"url":"https://github.com/ibm-cloud/trusted-profile-enterprise-security","last_synced_at":"2026-06-05T10:31:33.588Z","repository":{"id":171630602,"uuid":"648182784","full_name":"IBM-Cloud/trusted-profile-enterprise-security","owner":"IBM-Cloud","description":"Use trusted profiles as foundation for secure cloud environments","archived":false,"fork":false,"pushed_at":"2024-09-16T11:58:36.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-01-17T18:18:16.397Z","etag":null,"topics":["cloud-security","iam","ibm-cloud","ibm-cloud-cr","jwt","python"],"latest_commit_sha":null,"homepage":"https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-trusted-profile-for-enterprise-security","language":"Python","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/IBM-Cloud.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":"2023-06-01T11:46:01.000Z","updated_at":"2024-08-02T20:59:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5f271b1-db59-45ce-a0a0-b030e48bd138","html_url":"https://github.com/IBM-Cloud/trusted-profile-enterprise-security","commit_stats":null,"previous_names":["ibm-cloud/trusted-profile-enterprise-security"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBM-Cloud%2Ftrusted-profile-enterprise-security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBM-Cloud%2Ftrusted-profile-enterprise-security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBM-Cloud%2Ftrusted-profile-enterprise-security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IBM-Cloud%2Ftrusted-profile-enterprise-security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IBM-Cloud","download_url":"https://codeload.github.com/IBM-Cloud/trusted-profile-enterprise-security/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242961754,"owners_count":20213315,"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":["cloud-security","iam","ibm-cloud","ibm-cloud-cr","jwt","python"],"created_at":"2024-11-17T00:10:16.501Z","updated_at":"2026-06-05T10:31:33.523Z","avatar_url":"https://github.com/IBM-Cloud.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trusted Profiles on IBM Cloud\nSome tests of Trusted Profiles with Compute Resources on IBM Cloud.\n\nThe [app.py](app.py) creates three API functions:\n- `localhost:8080/`: check that the app works and return the current app version\n- `localhost:8080/api/listresources` with optional query parameter **tpname**: retrieve the service account token, turn it into an IBM Cloud IAM access token, retrieve the list of resources in the cloud account\n- `localhost:8080/api/listresources_crn` with optional query parameter **tpname**: the same as the previous, but just return the list of CRNs with other resource data stripped away \n\n# Deploy\nTo deploy, build the container image using the [Dockerfile](Dockerfile), then apply [app.yaml](app.yaml). Note that you need to change the container image specification in that file.\n\nAs alternative, follow the instructions in the [tutorial](https://cloud.ibm.com/docs/solution-tutorials?topic=solution-tutorials-trusted-profile-for-enterprise-security).\n\n![Architecture diagram](TrustedProfile_with_CR_architecture.svg)\n\n# Test \nOnce deployed, you can log into the running container:\n```\nkubectl exec --namespace tptest --stdin --tty tp-demo -- /bin/bash\n```\n\nWithin the container shell use **curl** to access the API:\n```\ncurl localhost:8080\n```\nor:\n```\ncurl localhost:8080/api/listresources?tpname=TPwithCR\n```\nor:\n```\ncurl localhost:8080/api/listresources_crn?tpname=TPwithCR\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibm-cloud%2Ftrusted-profile-enterprise-security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibm-cloud%2Ftrusted-profile-enterprise-security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibm-cloud%2Ftrusted-profile-enterprise-security/lists"}