Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system-charts
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
system-charts
Commits
d0bfa65f
Commit
d0bfa65f
authored
Jun 25, 2019
by
gitlawr
Committed by
Alena Prokharchyk
Jul 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restrict RBAC rules for accessing Istio service proxy
Formerly, it is accessible by authenticated users. Now, it is accessible by cluster owners and authorized users/groups.
parent
dd05aa02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
istio-service-rbac.yaml
charts/rancher-istio/0.0.2/templates/istio-service-rbac.yaml
+8
-5
values.yaml
charts/rancher-istio/0.0.2/values.yaml
+6
-0
No files found.
charts/rancher-istio/0.0.2/templates/istio-service-rbac.yaml
View file @
d0bfa65f
...
...
@@ -10,17 +10,20 @@ rules:
verbs
:
[
"
get"
,
"
watch"
,
"
list"
]
---
{{
- if .Values.global.members
}}
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
RoleBinding
metadata
:
name
:
read-istio-service
namespace
:
{{
.Release.Namespace
}}
subjects
:
-
kind
:
Group
name
:
system:authenticated
{{
- range $member
:
= .Values.global.members
}}
-
kind
:
{{
$member.kind
}}
name
:
{{
$member.name
}}
apiGroup
:
rbac.authorization.k8s.io
{{
- end
}}
roleRef
:
kind
:
Role
name
:
istio-service-reader
apiGroup
:
rbac.authorization.k8s.io
\ No newline at end of file
apiGroup
:
rbac.authorization.k8s.io
{{
- end
}}
\ No newline at end of file
charts/rancher-istio/0.0.2/values.yaml
View file @
d0bfa65f
...
...
@@ -139,6 +139,12 @@ istiocoredns:
# Common settings used among istio subcharts.
global
:
# Specify members that can access istio service proxy
# members:
# - kind: User
# name: u-abcba
# - kind: Group
# name: github_org://1234567
# Specify rancher domain and clusterId of external tracing config
# https://github.com/istio/istio.io/issues/4146#issuecomment-493543032
rancher
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment