{"id":15348199,"url":"https://github.com/ironcore864/ekspsp","last_synced_at":"2026-03-07T09:30:21.893Z","repository":{"id":73865872,"uuid":"277789257","full_name":"IronCore864/ekspsp","owner":"IronCore864","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-09T09:31:58.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T12:45:47.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IronCore864.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-07-07T10:43:18.000Z","updated_at":"2023-07-28T13:54:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"703783cb-8795-4f28-80fc-b5984c4b2756","html_url":"https://github.com/IronCore864/ekspsp","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"59baa241c3402ed4edf4b101eb08396f9c5d3300"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Fekspsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Fekspsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Fekspsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Fekspsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IronCore864","download_url":"https://codeload.github.com/IronCore864/ekspsp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239898461,"owners_count":19715212,"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":[],"created_at":"2024-10-01T11:45:20.032Z","updated_at":"2026-03-07T09:30:21.785Z","avatar_url":"https://github.com/IronCore864.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# PodSecurityPolicy\n\n## Setup\n\n### TL;DR\n\n```\nkubectl delete clusterrole eks:podsecuritypolicy:privileged\nkubectl delete clusterrolebinding eks:podsecuritypolicy:authenticated\nkubectl apply -f awsnode.yaml\nkubectl apply -f coredns.yaml\nkubectl apply -f kubeproxy.yaml\nkubectl apply -f ingress.yaml\nkubectl apply -f restricted.yaml\nkubectl delete psp eks.privileged\n```\n\nFor better understanding, don't run this, instead, continue reading:\n\n### Delete CR/CRB for Privileged\n\nBy default, EKS authenticated users have too much privileges. To delete:\n\n```\nkubectl delete clusterrole eks:podsecuritypolicy:privileged\nkubectl delete clusterrolebinding eks:podsecuritypolicy:authenticated\n```\n\n### Create PSP/R/RB for EKS Related Pods\n\nTo install:\n\n```\nkubectl apply -f awsnode.yaml\nkubectl apply -f coredns.yaml\nkubectl apply -f kubeproxy.yaml\n```\n\n### Crete PSP/CR/CRB for Authenticated Users\n\nFor other pods or authenticated users, only restricted containers are allowed, in any namespace.\n\n```\nkubectl apply -f restricted.yaml\n```\n\n### Create PSP/R/RB for Ingress\n\nIngress controller needs diffrent sets of policies than, say, coredns:\n\n```\nkubectl apply -f ingress.yaml\n```\n\n### Delete Default PSP and CR/CRB\n\nFinally, delete the EKS default PSP. Don't do this before other steps are done; otherwise you could not create pods when there is no PSP.\n\n```\nkubectl delete psp eks.privileged\n```\n\n## Roll Back to EKS Default PSP\n\nIn case you want to restore default (eks.privileged) policy, see:\n\nhttps://docs.aws.amazon.com/eks/latest/userguide/pod-security-policy.html\n\n## Testing\n\nYou can use `test.yaml` to test PSP. There are two images, one runs as root (USER 0), the other runs as user 1000.\n\n## Todo\n\nAnother privileged policy but restricted to namespace only, for example, for kube-system (or ingress namespace if they need).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironcore864%2Fekspsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fironcore864%2Fekspsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironcore864%2Fekspsp/lists"}