Helm charts and apps for pm-setup
[nonrtric/plt/ranpm.git] / install / helm / nrt-pm / charts / ics / templates / app-ra-ap.yaml
1 #  Copyright (C) 2023 Nordix Foundation. All rights reserved.
2 #  ========================================================================
3 #  Licensed under the Apache License, Version 2.0 (the "License");
4 #  you may not use this file except in compliance with the License.
5 #  You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #  See the License for the specific language governing permissions and
13 #  limitations under the License.
14 #  ============LICENSE_END=================================================
15 #
16
17 apiVersion: "security.istio.io/v1beta1"
18 kind: RequestAuthentication
19 metadata:
20   name: ics-ra
21   namespace: nonrtric
22 spec:
23   selector:
24     matchLabels:
25       app: informationservice
26   jwtRules:
27   - issuer: "http://keycloak.nonrtric:8080/realms/nonrtric-realm"
28     jwksUri: "http://keycloak.nonrtric:8080/realms/nonrtric-realm/protocol/openid-connect/certs"
29
30
31 ---
32
33 apiVersion: security.istio.io/v1beta1
34 kind: AuthorizationPolicy
35 metadata:
36   name: ics-ap
37   namespace: nonrtric
38 spec:
39   selector:
40     matchLabels:
41       app: informationservice
42   rules:
43   - from:
44     - source:
45         requestPrincipals: ["http://keycloak.nonrtric:8080/realms/nonrtric-realm/*"]
46