Skip to content

Commit 759586c

Browse files
andykruth-iiAndy Kruth
andauthored
fix: STREAMP-15651: use stream security for process input/output validation (#368)
* fix: STREAMP-15651: use stream security for process input/output validation * updating ubuntu runners * updating action versions --------- Co-authored-by: Andy Kruth <v-ankruth@expediagroup.com>
1 parent d541c35 commit 759586c

File tree

181 files changed

+833
-710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+833
-710
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@ on: [push, pull_request]
55
jobs:
66
build:
77
name: Build the project
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v5
1212
with:
1313
fetch-depth: 2
14+
1415
- name: Setup JDK
15-
uses: actions/setup-java@v1
16+
uses: actions/setup-java@v5
1617
with:
1718
java-version: 17
19+
java-package: jdk
20+
distribution: adopt
21+
architecture: x64
22+
1823
- name: Cache local Maven repository
19-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2025
with:
2126
path: ~/.m2/repository
2227
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
2328
restore-keys: |
2429
${{ runner.os }}-maven-
30+
2531
- name: mvn build
2632
run: ./mvnw clean install -Djib.skip -B

.github/workflows/release-patch.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ on: [workflow_dispatch]
55
jobs:
66
build:
77
name: Release
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@v5
1212
with:
1313
fetch-depth: 0
1414
# We need a personal access token to be able to push to a protected branch
1515
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
1616

1717
- name: Setup JDK
18-
uses: actions/setup-java@v2
18+
uses: actions/setup-java@v5
1919
with:
2020
java-version: 17
2121
java-package: jdk

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ on:
1515
jobs:
1616
build:
1717
name: Release
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v5
2222
with:
2323
fetch-depth: 0
2424
# We need a personal access token to be able to push to a protected branch
2525
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
2626

2727
- name: Setup JDK
28-
uses: actions/setup-java@v2
28+
uses: actions/setup-java@v5
2929
with:
3030
java-version: 17
3131
java-package: jdk

core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/handlers/HandlerService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2018-2021 Expedia, Inc.
2+
* Copyright (C) 2018-2025 Expedia, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,9 +24,6 @@
2424
import java.util.Set;
2525
import java.util.function.Function;
2626

27-
import lombok.Value;
28-
import lombok.extern.slf4j.Slf4j;
29-
3027
import org.springframework.stereotype.Component;
3128

3229
import com.expediagroup.streamplatform.streamregistry.core.validators.ValidationException;
@@ -47,6 +44,9 @@
4744
import com.expediagroup.streamplatform.streamregistry.model.StreamBinding;
4845
import com.expediagroup.streamplatform.streamregistry.model.Zone;
4946

47+
import lombok.Value;
48+
import lombok.extern.slf4j.Slf4j;
49+
5050
@Component
5151
@Slf4j
5252
public class HandlerService {

core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/handlers/IdentityHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2018-2021 Expedia, Inc.
2+
* Copyright (C) 2018-2025 Expedia, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,12 +15,12 @@
1515
*/
1616
package com.expediagroup.streamplatform.streamregistry.core.handlers;
1717

18-
import lombok.RequiredArgsConstructor;
19-
2018
import com.expediagroup.streamplatform.streamregistry.handler.Handler;
2119
import com.expediagroup.streamplatform.streamregistry.model.Entity;
2220
import com.expediagroup.streamplatform.streamregistry.model.Specification;
2321

22+
import lombok.RequiredArgsConstructor;
23+
2424
@RequiredArgsConstructor
2525
public class IdentityHandler<T extends Entity> implements Handler<T> {
2626
public static final String DEFAULT = "default";

core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ConsumerBindingService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2018-2024 Expedia, Inc.
2+
* Copyright (C) 2018-2025 Expedia, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,9 +21,6 @@
2121
import java.util.Optional;
2222
import java.util.function.Predicate;
2323

24-
import lombok.RequiredArgsConstructor;
25-
import lombok.val;
26-
2724
import org.springframework.security.access.prepost.PostAuthorize;
2825
import org.springframework.security.access.prepost.PostFilter;
2926
import org.springframework.security.access.prepost.PreAuthorize;
@@ -39,6 +36,9 @@
3936
import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerKey;
4037
import com.expediagroup.streamplatform.streamregistry.repository.ConsumerBindingRepository;
4138

39+
import lombok.RequiredArgsConstructor;
40+
import lombok.val;
41+
4242
@Component
4343
@RequiredArgsConstructor
4444
public class ConsumerBindingService {

core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ConsumerService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2018-2024 Expedia, Inc.
2+
* Copyright (C) 2018-2025 Expedia, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,9 +21,6 @@
2121
import java.util.Optional;
2222
import java.util.function.Predicate;
2323

24-
import lombok.RequiredArgsConstructor;
25-
import lombok.val;
26-
2724
import org.springframework.security.access.prepost.PostAuthorize;
2825
import org.springframework.security.access.prepost.PostFilter;
2926
import org.springframework.security.access.prepost.PreAuthorize;
@@ -39,6 +36,9 @@
3936
import com.expediagroup.streamplatform.streamregistry.model.keys.ConsumerKey;
4037
import com.expediagroup.streamplatform.streamregistry.repository.ConsumerRepository;
4138

39+
import lombok.RequiredArgsConstructor;
40+
import lombok.val;
41+
4242
@Component
4343
@RequiredArgsConstructor
4444
public class ConsumerService {

core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/DomainService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2018-2024 Expedia, Inc.
2+
* Copyright (C) 2018-2025 Expedia, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,9 +21,6 @@
2121
import java.util.Optional;
2222
import java.util.function.Predicate;
2323

24-
import lombok.RequiredArgsConstructor;
25-
import lombok.val;
26-
2724
import org.springframework.security.access.prepost.PostAuthorize;
2825
import org.springframework.security.access.prepost.PostFilter;
2926
import org.springframework.security.access.prepost.PreAuthorize;
@@ -43,6 +40,9 @@
4340
import com.expediagroup.streamplatform.streamregistry.model.keys.DomainKey;
4441
import com.expediagroup.streamplatform.streamregistry.repository.DomainRepository;
4542

43+
import lombok.RequiredArgsConstructor;
44+
import lombok.val;
45+
4646
@Component
4747
@RequiredArgsConstructor
4848
public class DomainService {

core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/InfrastructureService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2018-2024 Expedia, Inc.
2+
* Copyright (C) 2018-2025 Expedia, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,9 +21,6 @@
2121
import java.util.Optional;
2222
import java.util.function.Predicate;
2323

24-
import lombok.RequiredArgsConstructor;
25-
import lombok.val;
26-
2724
import org.springframework.security.access.prepost.PostAuthorize;
2825
import org.springframework.security.access.prepost.PostFilter;
2926
import org.springframework.security.access.prepost.PreAuthorize;
@@ -43,6 +40,9 @@
4340
import com.expediagroup.streamplatform.streamregistry.model.keys.InfrastructureKey;
4441
import com.expediagroup.streamplatform.streamregistry.repository.InfrastructureRepository;
4542

43+
import lombok.RequiredArgsConstructor;
44+
import lombok.val;
45+
4646
@Component
4747
@RequiredArgsConstructor
4848
public class InfrastructureService {

core/src/main/java/com/expediagroup/streamplatform/streamregistry/core/services/ProcessBindingService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2018-2024 Expedia, Inc.
2+
* Copyright (C) 2018-2025 Expedia, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,9 +21,6 @@
2121
import java.util.Optional;
2222
import java.util.function.Predicate;
2323

24-
import lombok.RequiredArgsConstructor;
25-
import lombok.val;
26-
2724
import org.springframework.security.access.prepost.PostAuthorize;
2825
import org.springframework.security.access.prepost.PostFilter;
2926
import org.springframework.security.access.prepost.PreAuthorize;
@@ -38,6 +35,9 @@
3835
import com.expediagroup.streamplatform.streamregistry.model.keys.ProcessBindingKey;
3936
import com.expediagroup.streamplatform.streamregistry.repository.ProcessBindingRepository;
4037

38+
import lombok.RequiredArgsConstructor;
39+
import lombok.val;
40+
4141
@Component
4242
@RequiredArgsConstructor
4343
public class ProcessBindingService {

0 commit comments

Comments
 (0)