Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Istio service entry, along with an authorization policy is causing 403 errors #14952

Open
OS-kiranmalsetty opened this issue Apr 24, 2024 · 0 comments

Comments

@OS-kiranmalsetty
Copy link

Implemented an Istio service entry for our internal service, along with an authorization policy as below.
we also have a default sidecar to restrict traffic between namespaces.

ServiceEntry:
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
........
spec:
exportTo:
- .
hosts:
- xxxxxxx.xxxxxx.svc.cluster.local
location: MESH_INTERNAL
ports:
- name: http-xxxx
number: 8080
protocol: HTTP
- name: http-yyyy
number: 8081
protocol: HTTP
resolution: NONE
AuthorizationPolicy:
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
.......
spec:
action: ALLOW
rules:
- from:
- source:
principals:
- cluster.local/ns/xxxxxxx/sa/xxxxxxx
- from:
- source:
namespaces:
- yyyyyyyy
to:
- operation:
methods:
- GET
paths:
- /test
- to:
- operation:
ports:
- '8090'
selector:
matchLabels:
app: zzzzzzzz
However, after upgrading Istio to version 1.20, we've noticed the emergence of 403 errors. Interestingly, when we remove all the rules from the authorization policy, the 403 errors disappear. Any insights on what might be causing this and how to address it would be greatly appreciated.

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

No branches or pull requests

1 participant