dumbtv
dumbtv takes the ads, screen tracking and update nags out of your Fire TV over ADB. No root, none of your apps touched, every step can be undone. Free and open source.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證A tool to automatically generate minimal IAM policy to deploy a CloudFormation stack from its template.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Generate the IAM policy a CloudFormation stack needs, from its template, before you deploy it.
Deploy roles are usually far broader than the stack needs, often AdministratorAccess, because working out the minimum by hand means reading the docs for every resource type in the template. IAM Access Analyzer can generate a policy, but it works from CloudTrail, so you have to deploy with broad permissions first and narrow them afterwards. cfn2iam reads the template instead.
Requires Python 3.9+ and network access to the schema host (see How it works).檢視完整 README ↗Generate the IAM policy a CloudFormation stack needs, from its template, before you deploy it.
Deploy roles are usually far broader than the stack needs, often AdministratorAccess, because working out the minimum by hand means reading the docs for every resource type in the template. IAM Access Analyzer can generate a policy, but it works from CloudTrail, so you have to deploy with broad permissions first and narrow them afterwards. cfn2iam reads the template instead.
pip install cfn2iam # or: uv tool install cfn2iam
pip install "cfn2iam[iam]" # adds boto3, for --create-role and registry lookups of private types
Requires Python 3.9+ and network access to the schema host (see How it works).
cfn2iam template.yaml
This writes policy-<random>.json to the current directory:
{
"Version": "2012-10-17",
"Statement": [
{ "Effect": "Allow", "Action": ["s3:CreateBucket", "s3:GetBucketTagging", "..."], "Resource": "*" },
{ "Effect": "Deny", "Action": ["s3:DeleteBucket", "..."], "Resource": "*" }
]
}
| Option | Effect |
|---|---|
-d, --allow-delete | Allow the delete-only actions instead of denying them |
-c, --create-role | Also create an IAM role CloudFormation can assume, with this policy inline (needs cfn2iam[iam] and AWS credentials) |
-r, --role-name NAME | Role name for --create-role (default cfn2iam-<random>) |
-p, --permissions-boundary ARN | Permissions boundary for the created role |
--ignore-unknown | Skip resource types found in neither the public schemas nor the CloudFormation registry, instead of failing |
--registry | Look up every resource type with CloudFormation DescribeType in your account instead of the published schemas (needs cfn2iam[iam] and AWS credentials) |
--region REGION | Region for CloudFormation registry lookups (default: your AWS config) |
--version | Print the version |
Examples:
cfn2iam template.yaml -d # allow deletes, e.g. for stacks you tear down
cfn2iam template.yaml -c -r MyDeployRole # create the role as well
cfn2iam template.yaml -c -p arn:aws:iam::123456789012:policy/boundary
!Ref) and collects the resource types.AWS::Serverless::*) into the resources SAM creates, using rules that check the resource's properties (for example, a function with an SQS event also needs the event source mapping).backend/sam_rules.DescribeType in your account and region. This needs cfn2iam[iam], AWS credentials and cloudformation:DescribeType. With --registry, every type is looked up this way; SAM rules still come from the published rules.create, read, update and list handlers as Allow, and the permissions only its delete handler needs as Deny (or Allow with -d).If any resource type can't be resolved, cfn2iam lists them, writes no policy, and exits with status 1. A partial policy would fail mid-deploy at best. Network failures can't be skipped; types found nowhere can, with --ignore-unknown.
"Resource": "*". Resource ARNs mostly don't exist until the stack does, so the policy is least-privilege on actions only.-d if the role also has to delete these resources.Custom::*, AWS::CloudFormation::CustomResource, AWS::CDK::Metadata). Anything they need, such as permission to invoke their Lambda function, isn't included.MIT. See LICENSE.