Commit 13a0ed9e authored by Aman Verma's avatar Aman Verma
Browse files

Merge remote-tracking branch 'origin/master' into users/amaverma/UpdateIstioPolicies

parents e1926b97 d5478cf1
...@@ -82,3 +82,7 @@ spec: ...@@ -82,3 +82,7 @@ spec:
- backend: - backend:
serviceName: wellbore-dms serviceName: wellbore-dms
servicePort: 80 servicePort: 80
- backend:
serviceName: notification
servicePort: 80
path: /api/notification/v1/*
...@@ -34,5 +34,8 @@ spec: ...@@ -34,5 +34,8 @@ spec:
"*/actuator/health", "*/actuator/health",
"/api/indexer/v2/swagger-resources/*", "/api/indexer/v2/swagger-resources/*",
"/api/indexer/v2/webjars/*", "/api/indexer/v2/webjars/*",
"*/index-worker",
"*/_dps/task-handlers",
"/api/indexer/v2/_dps/task-handlers/*",
"*/reindex", "*/reindex",
"*/configuration/security"] "*/configuration/security"]
# Copyright © Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: register-jwt-authz
namespace: osdu
spec:
selector:
matchLabels:
app: register
action: DENY
rules:
- from:
- source:
notRequestPrincipals: ["*"]
to:
- operation:
notPaths: ["/",
"*/swagger","*/swagger-resources","*/swagger-ui.html",
"*/actuator/health",
"/api/register/v1/swagger-resources/*"]
...@@ -148,6 +148,11 @@ cosmos_sql_collections = [ ...@@ -148,6 +148,11 @@ cosmos_sql_collections = [
name = "FileLocationEntity" name = "FileLocationEntity"
database_name = "osdu-db" database_name = "osdu-db"
partition_key_path = "/id" partition_key_path = "/id"
},
{
name = "WorkflowCustomOperatorInfo"
database_name = "osdu-db"
partition_key_path = "/operatorId"
} }
] ]
......
...@@ -49,7 +49,7 @@ func TestTemplate(t *testing.T) { ...@@ -49,7 +49,7 @@ func TestTemplate(t *testing.T) {
TfOptions: tfOptions, TfOptions: tfOptions,
Workspace: workspace, Workspace: workspace,
PlanAssertions: nil, PlanAssertions: nil,
ExpectedResourceCount: 90, ExpectedResourceCount: 91,
ExpectedResourceAttributeValues: resourceDescription, ExpectedResourceAttributeValues: resourceDescription,
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment