istio: istio.io/istio/mixer/adapter/opa/config Index | Files

package config

import "istio.io/istio/mixer/adapter/opa/config"

Index

Package Files

config.pb.go

Variables

var (
    ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowConfig   = fmt.Errorf("proto: integer overflow")
)

type Params Uses

type Params struct {
    // List of OPA policies
    Policy []string `protobuf:"bytes,1,rep,name=policy,proto3" json:"policy,omitempty"`
    // Query method to check.
    // Format: `data.<package name>.<method name>`
    CheckMethod string `protobuf:"bytes,2,opt,name=check_method,json=checkMethod,proto3" json:"check_method,omitempty"`
    // Close the client request when adapter has a issue.
    // If failClose is set to true and there is a runtime error,
    // instead of disabling the adapter, close the client request
    FailClose bool `protobuf:"varint,3,opt,name=fail_close,json=failClose,proto3" json:"fail_close,omitempty"`
}

Configuration format for the `opa` adapter.

Example configuration: “`yaml policy:

- |+
  package mixerauthz
  policy = [
    {
      "rule": {
        "verbs": [
          "storage.buckets.get"
        ],
        "users": [
          "bucket-admins"
        ]
      }
    }
  ]

  default allow = false

  allow = true {
    rule = policy[_].rule
    input.subject.user = rule.users[_]
    input.action.method = rule.verbs[_]
  }

checkMethod: "data.mixerauthz.allow" failClose: true “`

func (*Params) Descriptor Uses

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Marshal Uses

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo Uses

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer Uses

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage Uses

func (*Params) ProtoMessage()

func (*Params) Reset Uses

func (m *Params) Reset()

func (*Params) Size Uses

func (m *Params) Size() (n int)

func (*Params) String Uses

func (this *Params) String() string

func (*Params) Unmarshal Uses

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown Uses

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal Uses

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge Uses

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size Uses

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal Uses

func (m *Params) XXX_Unmarshal(b []byte) error

Package config imports 8 packages (graph) and is imported by 3 packages. Updated 2019-10-19. Refresh now. Tools for package owners.