{"id":22928840,"url":"https://github.com/mohamedch7/kubectl-guard","last_synced_at":"2025-05-13T02:33:00.289Z","repository":{"id":259615034,"uuid":"792206971","full_name":"mohamedch7/kubectl-guard","owner":"mohamedch7","description":"Accidentally modifying production instead of a local cluster? kubectl-guard helps prevent such critical mistakes.","archived":false,"fork":false,"pushed_at":"2024-08-26T16:53:31.000Z","size":6,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T06:02:14.294Z","etag":null,"topics":["kubernetes","script","security"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/mohamedch7.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":"2024-04-26T07:37:20.000Z","updated_at":"2025-02-08T13:28:49.000Z","dependencies_parsed_at":"2024-10-30T05:46:16.543Z","dependency_job_id":null,"html_url":"https://github.com/mohamedch7/kubectl-guard","commit_stats":null,"previous_names":["mohamedch7/kubectl-guard"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedch7%2Fkubectl-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedch7%2Fkubectl-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedch7%2Fkubectl-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamedch7%2Fkubectl-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohamedch7","download_url":"https://codeload.github.com/mohamedch7/kubectl-guard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253859593,"owners_count":21975136,"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":["kubernetes","script","security"],"created_at":"2024-12-14T09:27:59.306Z","updated_at":"2025-05-13T02:33:00.243Z","avatar_url":"https://github.com/mohamedch7.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl-guard README\n\n## How to Use:\n\n1. **Create a File for the Script**: \n   - Name the file `kubectl-guard`.\n\n2. **Change File Permissions**: \n   - Run the command: `chmod +x kubectl-guard`.\n\n3. **Update Your Shell Configuration File (e.g., ~/.zshrc)**:\n   - Open `~/.zshrc` in a text editor: `vi ~/.zshrc`.\n\n4. **Add an Alias**:\n   - Update `~/.zshrc` with the following line:\n     ```bash\n     alias kubectl='full-path-to/kubectl-guard'\n     ```\n   - Replace `full-path-to` with the actual path where the `kubectl-guard` script is located.\n\n5. **Save the File**.\n\n6. **Close the Terminal Session**:\n   - Close your current terminal session.\n\n7. **Start a New Terminal Session**:\n   - Open a new terminal window to apply the changes.\n\n## Notes:\n\n- This is a small demo. Exercise caution when using it.\n- Always ensure that the name of the production cluster contains the word 'prod' or you can change the variable `PROD_IDENTIFIER`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedch7%2Fkubectl-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamedch7%2Fkubectl-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedch7%2Fkubectl-guard/lists"}