Cleanup rolepermission descriptions

find permissions -name '*.json' | while read -r file; do
    echo Processing $file
    sed -i 's|"description": "\([a-zA-Z]\)\([a-zA-Z\ ]*\)\.*",|"description": "\u\1\2",|' $file
done
This commit is contained in:
Abin Simon
2022-06-17 13:49:42 +05:30
parent aea9d26b06
commit b571a83bd9
76 changed files with 76 additions and 76 deletions

View File

@@ -34,7 +34,7 @@
}
],
"base_url": "",
"description": "view console and manage user access.",
"description": "View console and manage user access",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -1,7 +1,7 @@
{
"name": "group.read",
"base_url": "/auth/v3/partner/:metadata.partner/organization/:metadata.organization",
"description": "view group info and association",
"description": "View group info and association",
"resource_urls": [
{
"url": "/groups",

View File

@@ -1,7 +1,7 @@
{
"name": "group.write",
"base_url": "/auth/v3/partner/:metadata.partner/organization/:metadata.organization",
"description": "manage group and its associations",
"description": "Manage group and its associations",
"resource_urls": [
{
"url": "/groups",

View File

@@ -10,7 +10,7 @@
}
],
"resource_action_urls": [],
"description": "view locations.",
"description": "View locations",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -1,7 +1,7 @@
{
"name": "location.write",
"base_url": "/infra/v3/partner/:metadata.partner",
"description": "manage locations",
"description": "Manage locations",
"resource_urls": [
{
"url": "/location/:metadata.name",

View File

@@ -1,7 +1,7 @@
{
"name": "oidc.read",
"base_url": "/auth/v3/sso/oidc/provider",
"description": "view oidc configuration.",
"description": "View oidc configuration",
"resource_urls": [
{
"url": "",

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/auth/v3/partner/:metadata.partner",
"description": "view organization information.",
"description": "View organization information",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -10,7 +10,7 @@
],
"resource_action_urls": [],
"base_url": "/auth/v3/partner/:metadata.partner/organization",
"description": "manage organization information.",
"description": "Manage organization information",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/auth/v3/partner",
"description": "view partner information.",
"description": "View partner information",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/auth/v3/partner/:metadata.partner/organization/:metadata.organization",
"description": "view project information.",
"description": "View project information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/auth/v3/partner/:metadata.partner/organization/:metadata.organization",
"description": "view roles.",
"description": "View roles",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -10,7 +10,7 @@
],
"resource_action_urls": [],
"base_url": "/auth/v3/rolepermissions",
"description": "view role permissions.",
"description": "View role permissions",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -1,7 +1,7 @@
{
"name": "ssouser.read",
"base_url": "/auth/v3/ssousers",
"description": "view sso users information.",
"description": "View sso users information",
"resource_urls": [
{
"url": "/:account_id/groups/",

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/config/v1/templates",
"description": "view templates.",
"description": "View templates",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -21,7 +21,7 @@
}
],
"base_url": "/auth/v3",
"description": "view users information.",
"description": "View users information",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/apis/apps.k8smgmt.io/v3/projects/:project_name/infraprovisioners",
"description": "view infraprovisioner information",
"description": "View infraprovisioner information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -29,7 +29,7 @@
}
],
"base_url": "/apis/infra.k8smgmt.io/v3/projects/:project_name/namespaces",
"description": "read namespaces",
"description": "Read namespaces",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/apis/gitops.k8smgmt.io/v3/projects/:project_name/pipelines",
"description": "view pipeline information.",
"description": "View pipeline information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/apis/integrations.k8smgmt.io/v3/projects/:project_name/repositories",
"description": "view repository information.",
"description": "View repository information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -29,7 +29,7 @@
}
],
"base_url": "/apis/apps.k8smgmt.io/v3/projects/:project_name/workloads",
"description": "view workload information.",
"description": "View workload information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -23,7 +23,7 @@
}
],
"base_url": "/apis/apps.k8smgmt.io/v3/projects/:project_name/workloadtemplates",
"description": "view workload template information.",
"description": "View workload template information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/config/v1/namespaces",
"description": "view all namespaces information.",
"description": "View all namespaces information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/pipeline/projects/:project_id/approvals",
"description": "view project pipeline approval information.",
"description": "View project pipeline approval information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
}
],
"base_url": "/v2/pipeline/projects/:project_id/approvals",
"description": "update project pipeline approvals.",
"description": "Update project pipeline approvals",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/pipeline/project/:project_id/approval",
"description": "view project pipeline approval information.",
"description": "View project pipeline approval information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
}
],
"base_url": "/v2/pipeline/project/:project_id/approval",
"description": "update project pipeline approval information.",
"description": "Update project pipeline approval information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/pipeline/project/:project_id/approvalsummary",
"description": "view project pipeline approval summary information.",
"description": "View project pipeline approval summary information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/config/project/:project_id/overrides/workloads",
"description": "view workload overrides.",
"description": "View workload overrides",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -17,7 +17,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/config/project/:project_id/overrides/workloads",
"description": "update workload overrides.",
"description": "Update workload overrides",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/config/project/:project_id/containerRegistry",
"description": "view container registry information.",
"description": "View container registry information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -17,7 +17,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/config/project/:project_id/containerRegistry",
"description": "update container registry information.",
"description": "Update container registry information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -23,7 +23,7 @@
}
],
"base_url": "/config/v1/projects/:project_id/workloads",
"description": "view project workload dashboard information.",
"description": "View project workload dashboard information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/infraProvisioner/project/:project_id/infraProvisioner",
"description": "view project infra provisioner information.",
"description": "View project infra provisioner information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -35,7 +35,7 @@
}
],
"base_url": "/v2/infraProvisioner/project/:project_id/infraProvisionerRuntime",
"description": "view project infra provisioner runtime information.",
"description": "View project infra provisioner runtime information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/config/project/:project_id/integrationEndpoint",
"description": "read project integration endpoint information.",
"description": "Read project integration endpoint information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -10,7 +10,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/pipeline/project/:project_id/myapproval",
"description": "view project pipeline approval information.",
"description": "View project pipeline approval information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -10,7 +10,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/pipeline/project/:project_id/myapprovalsummary",
"description": "view project pipeline my approval summary information.",
"description": "View project pipeline my approval summary information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v1/config/projects/:project_id/namespaces",
"description": "view project namespace information.",
"description": "View project namespace information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -23,7 +23,7 @@
}
],
"base_url": "/config/v1/projects/:project_id/namespaces",
"description": "view project namespaces.",
"description": "View project namespaces",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/config/project/:project_id/override",
"description": "view project overrides.",
"description": "View project overrides",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -41,7 +41,7 @@
}
],
"base_url": "/v2/pipeline/projects/:project_id/pipelines",
"description": "view project pipeline information.",
"description": "View project pipeline information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -47,7 +47,7 @@
}
],
"base_url": "/v2/pipeline/project/:project_id/pipeline",
"description": "view project pipeline information.",
"description": "View project pipeline information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/pipeline/project/:project_id/variable",
"description": "view pipeline variables.",
"description": "View pipeline variables",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/pipeline/projects/:project_id/pipelinesummaries",
"description": "view project pipeline summary.",
"description": "View project pipeline summary",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/pipeline/project/:project_id/pipelinesummary",
"description": "view project pipeline summary.",
"description": "View project pipeline summary",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/config/project/:project_id/placement",
"description": "view project placements.",
"description": "View project placements",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -53,7 +53,7 @@
}
],
"base_url": "/config/v1/projects/:project_id",
"description": "view project registry information.",
"description": "View project registry information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -1,7 +1,7 @@
{
"name": "project.repository.read",
"base_url": "/v2/config/project/:project_id/repository",
"description": "view project repository information.",
"description": "View project repository information",
"resource_urls": [
{
"url": "",

View File

@@ -47,7 +47,7 @@
}
],
"base_url": "/v2/scheduler/project/:project_id/placement",
"description": "view cluster placement configuration.",
"description": "View cluster placement configuration",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/pipeline/project/:project_id/systemsync",
"description": "view system sync information.",
"description": "View system sync information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -1,7 +1,7 @@
{
"name": "project.taskset.read",
"base_url": "/v2/config/project/:project_id/taskset",
"description": "view taskset information.",
"description": "View taskset information",
"resource_urls": [
{
"url": "",

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/pipeline/projects/:project_id/triggers",
"description": "view pipeline trigger information.",
"description": "View pipeline trigger information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/pipeline/project/:project_id/trigger",
"description": "view pipeline trigger information.",
"description": "View pipeline trigger information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -107,7 +107,7 @@
}
],
"base_url": "/v1/config/projects/:project_id/workloads",
"description": "view workload configuration.",
"description": "View workload configuration",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -107,7 +107,7 @@
}
],
"base_url": "/config/v1/projects/:project_id/workloads",
"description": "view workload information.",
"description": "View workload information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -23,7 +23,7 @@
}
],
"base_url": "/v2/config/project/:project_id/workloadtemplate",
"description": "view workload templates.",
"description": "View workload templates",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -35,7 +35,7 @@
}
],
"base_url": "/v2/config/project/:project_id/workload",
"description": "view workloads.",
"description": "View workloads",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -35,7 +35,7 @@
}
],
"base_url": "/config/v1/registries",
"description": "view registry and repository.",
"description": "View registry and repository",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
],
"resource_action_urls": [],
"base_url": "/auth/v3/registryauthkeys",
"description": "view registry auth keys.",
"description": "View registry auth keys",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -16,7 +16,7 @@
}
],
"base_url": "/config/v1/registry",
"description": "view registry images.",
"description": "View registry images",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -22,7 +22,7 @@
}
],
"base_url": "/config/v1/workloads",
"description": "publish workloads.",
"description": "Publish workloads",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -95,7 +95,7 @@
}
],
"base_url": "/config/v1/workloads",
"description": "view workloads.",
"description": "View workloads",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -10,7 +10,7 @@
}
],
"base_url": "/event/v1/audit",
"description": "read system audit logs",
"description": "Read system audit logs",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -1,7 +1,7 @@
{
"name": "kubeconfig.read",
"base_url": "/v2/sentry/kubeconfig",
"description": "view all kubeconfig information.",
"description": "View all kubeconfig information",
"resource_urls": [
{
"url": "/user",

View File

@@ -1,6 +1,6 @@
{
"name": "kubectl.cluster.read",
"description": "view kube cluster information.",
"description": "View kube cluster information",
"base_url": "",
"resource_urls": [],
"resource_action_urls": [],

View File

@@ -1,6 +1,6 @@
{
"name": "kubectl.cluster.write",
"description": "update kubectl at cluster level.",
"description": "Update kubectl at cluster level",
"base_url": "",
"resource_urls": [],
"resource_action_urls": [],

View File

@@ -1,7 +1,7 @@
{
"name": "kubectl.clustersettings.read",
"base_url": "/v2/sentry/kubectl",
"description": "view kubectl settings at cluster level.",
"description": "View kubectl settings at cluster level",
"resource_urls": [],
"resource_action_urls": [
{

View File

@@ -1,7 +1,7 @@
{
"name": "kubectl.clustersettings.write",
"base_url": "/v2/sentry/kubectl",
"description": "update kubectl settings at cluster level.",
"description": "Update kubectl settings at cluster level",
"resource_urls": [],
"resource_action_urls": [
{

View File

@@ -1,6 +1,6 @@
{
"name": "kubectl.fullaccess",
"description": "full access to kubectl",
"description": "Full access to kubectl",
"base_url": "",
"resource_urls": [],
"resource_action_urls": [],

View File

@@ -1,6 +1,6 @@
{
"name": "kubectl.namespace.read",
"description": "view kubectl namespace information",
"description": "View kubectl namespace information",
"base_url": "",
"resource_urls": [],
"resource_action_urls": [],

View File

@@ -10,7 +10,7 @@
],
"resource_action_urls": [],
"base_url": "/event/v1/auditlog",
"description": "Permission to view system audit logs.",
"description": "Permission to view system audit logs",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -10,7 +10,7 @@
],
"resource_action_urls": [],
"base_url": "/event/v1/relayaudit",
"description": "Permission to view kubectl audit logs.",
"description": "Permission to view kubectl audit logs",
"authenticated": true,
"scope": "ORGANIZATION"
}

View File

@@ -10,7 +10,7 @@
],
"resource_action_urls": [],
"base_url": "/event/v1/project/:project_id/auditlog",
"description": "view project system audit information.",
"description": "View project system audit information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -10,7 +10,7 @@
}
],
"base_url": "/event/v1/project/:project_id/audit",
"description": "view project kubectl audit information.",
"description": "View project kubectl audit information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -10,7 +10,7 @@
],
"resource_action_urls": [],
"base_url": "/event/v1/project/:project_id/relayaudit",
"description": "view project kubectl audit log information.",
"description": "View project kubectl audit log information",
"authenticated": true,
"scope": "PROJECT"
}

View File

@@ -10,7 +10,7 @@
],
"resource_action_urls": [],
"base_url": "/v2/debug",
"description": "read web kubectl.",
"description": "Read web kubectl",
"authenticated": true,
"scope": "PROJECT"
}