Skip to content

Conversation

andraxylia
Copy link
Contributor

Fixes #550

After pilot and mixer images are updated, we need a follow up to remove TPRs, add a mixer role and fine-grained rules for mixer.

@istio-merge-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andraxylia

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@@ -8,6 +8,12 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: istio-pilot
rules:
- apiGroups: ["config.istio.io"]
resources: ["istiokinds"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put * star here for future-proofing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, ptal

namespace: default
roleRef:
kind: ClusterRole
name: istio-pilot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is really a big hack. @mandarjog or some mixer hacker to get the right permissions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this will be addressed separately.

- apiGroups: ["config.istio.io"]
resources: ["istiokinds"]
verbs: ["get", "list", "watch"]
- apiGroups: ["apiextensions.k8s.io"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have different roles for creating new Istio config types (via CRD) vs. creating new instances of these types? The former would be limited to installation time and the latter restricted to specific components by type.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

each component is responsible for installing its config for now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured that was probably the case. I guess we can reconsider splitting that out later once new Istio CRD types are stabilized.

@andraxylia andraxylia merged commit 412d361 into master Aug 15, 2017
@andraxylia andraxylia deleted the rbac-e2e branch September 8, 2017 17:30
rshriram pushed a commit that referenced this pull request Oct 30, 2017
* Updated rules for CRD and mixer

* Future proof?

* Put * instead of istiokinds


Former-commit-id: 412d361
vbatts pushed a commit to vbatts/istio that referenced this pull request Oct 31, 2017
* Updated rules for CRD and mixer

* Future proof?

* Put * instead of istiokinds


Former-commit-id: 412d361
mandarjog pushed a commit that referenced this pull request Oct 31, 2017
This change adds support for creating mixer rules with istioctl. It
supports "create" and "get" as subcommands to "istioctl mixer
rule". The mixer API server address is set with the
ISTIO_MIXER_API_SERVER environment variable for easy integration into
istio demo and smoke test as well as with "-m/--mixer" flag.

Example usage:

    $ export ISTIO_MIXER_API_SERVER=localhost:9094
    $ cat rules.yml
    subject: namespace:ns
    revision: "2022"
    rules:
    - aspects:
      - kind: denials

    $ istioctl mixer rule create global myservice.ns.svc.cluster.local -f rules.yml
    $ istioctl mixer rule get global myservice.ns.svc.cluster.local
    revision: "2022"
    rules:
    - aspects:
      - kind: denials
    subject: namespace:ns

There is much room for improvement in the istioctl and API server space:

1) Unify mixer and proxy API servers

2) Unify proxy and mixer resource file format so that
"istioctl create -f <file>" can be used to create any
istio resource, e.g. DestinationPolicy, RouteRule, MixerRule.

3) Move API server's gRPC and REST API definitions into istio.io/api
instead of spreading it across multiple component repos.

4) istioctl auth to API servers
mandarjog pushed a commit that referenced this pull request Nov 2, 2017
* Updated rules for CRD and mixer

* Future proof?

* Put * instead of istiokinds


Former-commit-id: 412d361
rshriram pushed a commit to rshriram/istio that referenced this pull request Jul 31, 2018
* RemoveResponseHeaders should be a repeated string instead of a map

Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>

* Add removeResponseHeaders generated code

Signed-off-by: Christopher M. Luciano <cmluciano@us.ibm.com>
howardjohn pushed a commit to howardjohn/istio that referenced this pull request Jan 12, 2020
Signed-off-by: Juraci Paixão Kröhling <jpkroehling@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants