Skip to content

Updated rules for CRD and mixer#560

Merged
andraxylia merged 6 commits intomasterfrom
rbac-e2e
Aug 15, 2017
Merged

Updated rules for CRD and mixer#560
andraxylia merged 6 commits intomasterfrom
rbac-e2e

Conversation

@andraxylia
Copy link
Copy Markdown
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
Copy Markdown

[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.

Details 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

name: istio-pilot
rules:
- apiGroups: ["config.istio.io"]
resources: ["istiokinds"]
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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>
dgn pushed a commit to dgn/istio that referenced this pull request Feb 17, 2026
…-changes-1.28

Cherry-pick downstream changes to release-1.28
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