portal-ng/bff.git
3 months agoMerge "Bump com.diffplug.spotless from 6.20.0 to 7.0.2"
Fiete Ostkamp [Wed, 19 Mar 2025 11:10:06 +0000 (11:10 +0000)]
Merge "Bump com.diffplug.spotless from 6.20.0 to 7.0.2"

3 months agoBump com.diffplug.spotless from 6.20.0 to 7.0.2 14/140514/1
dependabot[bot] [Wed, 19 Mar 2025 10:49:04 +0000 (10:49 +0000)]
Bump com.diffplug.spotless from 6.20.0 to 7.0.2

Bumps com.diffplug.spotless from 6.20.0 to 7.0.2.

updated-dependencies:
- dependency-name: com.diffplug.spotless
  dependency-type: direct:production
  update-type: version-update:semver-major

Issue-ID: CIMAN-33

Change-Id: Id3a79d0d4b1962abf05458ac6f706d8bb5bc9ecc
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: onap.gh2gerrit <releng+onap-gh2gerrit@linuxfoundation.org>
3 months agoBump org.projectlombok:lombok from 1.18.28 to 1.18.36 12/140512/1
dependabot[bot] [Wed, 19 Mar 2025 10:49:00 +0000 (10:49 +0000)]
Bump org.projectlombok:lombok from 1.18.28 to 1.18.36

Bumps [org.projectlombok:lombok](https://github.com/projectlombok/lombok) from 1.18.28 to 1.18.36.
- [Changelog](https://github.com/projectlombok/lombok/blob/master/doc/changelog.markdown)
- [Commits](https://github.com/projectlombok/lombok/compare/v1.18.28...v1.18.36)

updated-dependencies:
- dependency-name: org.projectlombok:lombok
  dependency-type: direct:production
  update-type: version-update:semver-patch

Issue-ID: CIMAN-33

Change-Id: I6066b27ece4b2a2c6198dcec7f76cbe24658421b
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: onap.gh2gerrit <releng+onap-gh2gerrit@linuxfoundation.org>
3 months agoChore: Enable dependabot for Gradle pacakge ecosystem updates 03/140503/1
Matthew Watkins [Wed, 19 Mar 2025 10:42:25 +0000 (10:42 +0000)]
Chore: Enable dependabot for Gradle pacakge ecosystem updates

Issue-ID: CIMAN-33

Change-Id: I0e4d068bf8d43bfd70100abf54eb013feb91bdfa
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
5 months agoFix: Restore secret reference in gh workflow 57/139957/1
Kevin Sandi [Sat, 18 Jan 2025 16:45:34 +0000 (10:45 -0600)]
Fix: Restore secret reference in gh workflow

Issue-ID: CIMAN-33
Change-Id: I230fd13d8c241673d6c3a4f4e9efe257c948ee7b
Signed-off-by: Kevin Sandi <ksandi@contractor.linuxfoundation.org>
6 months agoMerge "add KeycloakPermissionFilter"
Fiete Ostkamp [Tue, 17 Dec 2024 09:09:23 +0000 (09:09 +0000)]
Merge "add KeycloakPermissionFilter"

6 months agoRelease 0.1.1 bff image 00/139700/1
Fiete Ostkamp [Tue, 10 Dec 2024 09:17:09 +0000 (10:17 +0100)]
Release 0.1.1 bff image

- dependency updates
- add `bff.rbac.endpoints-excluded` to allow local non-keycloak execution

Issue-ID: PORTALNG-127
Change-Id: I9638dbc0a4cf4b1df2ddd53c03c5a278d0b8f7fc
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
6 months agoCI: Remove deprecated secret reference 50/139650/1 0.1.1
Kevin Sandi [Wed, 4 Dec 2024 23:00:18 +0000 (17:00 -0600)]
CI: Remove deprecated secret reference

Issue-ID: CIMAN-33
Change-Id: Ibfa01a56ca26878e7e5e3ce74112cc6bc76e1b9d
Signed-off-by: Kevin Sandi <ksandi@contractor.linuxfoundation.org>
8 months agoadd KeycloakPermissionFilter 95/138995/10
Stefan Dierichs [Thu, 19 Sep 2024 13:39:02 +0000 (15:39 +0200)]
add KeycloakPermissionFilter

Issue-ID: PORTALNG-117

Change-Id: If3ba5969dbbdd6fbf7488e7f46831d6f9ff5550c
Signed-off-by: Stefan Dierichs <s.dierichs@telekom.de>
8 months agoMerge "Update spring-boot in bff"
Fiete Ostkamp [Wed, 23 Oct 2024 07:34:42 +0000 (07:34 +0000)]
Merge "Update spring-boot in bff"

8 months agoAdd dependabot for the portal-ng-bff 49/139249/1
Fiete Ostkamp [Tue, 22 Oct 2024 12:02:59 +0000 (14:02 +0200)]
Add dependabot for the portal-ng-bff

Issue-ID: PORTALNG-126
Change-Id: I4137352f295513a5ebeb8498c95b519e4d67872e
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
8 months agoFeat: Add github2gerrit workflow for testing 99/139199/1
Matthew Watkins [Tue, 15 Oct 2024 09:29:33 +0000 (10:29 +0100)]
Feat: Add github2gerrit workflow for testing

https://jira.linuxfoundation.org/browse/IT-27340

Issue-ID: CIMAN-448

Change-Id: Ia998df4827f754550a76982a4c405367bd482efb
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
9 months agoUpdate spring-boot in bff 96/138896/1
Fiete Ostkamp [Wed, 4 Sep 2024 07:10:38 +0000 (09:10 +0200)]
Update spring-boot in bff

- update spring-boot (3.2.4 -> 3.3.3)
- add micrometer-registry-prometheus dependency for metrics

Issue-ID: PORTALNG-116
Change-Id: Iebda696126bdd42bdd4c48d363fe61a781a20f13
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
13 months agoMake rbac excluded endpoints configurable 91/137891/8 newdelhi
Fiete Ostkamp [Tue, 14 May 2024 11:38:17 +0000 (13:38 +0200)]
Make rbac excluded endpoints configurable

- introduce bff.rbac.endpoints-excluded config
- add some performance improvements for role checking
- resolve compilation warning related to missing swagger dependency

Issue-ID: PORTALNG-100
Change-Id: I38ac942f0731a3297a797a09402f20aa6efc3b58
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
13 months agoRelease 0.1.0 image of bff 71/137871/3
Fiete Ostkamp [Fri, 10 May 2024 07:33:11 +0000 (09:33 +0200)]
Release 0.1.0 image of bff

Issue-ID: PORTALNG-87
Change-Id: I4954030e8ed55fbfc987d8d8c5006a0f9d9bb483
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
13 months agoMake openapi dependencies in bff compileOnly 49/137849/1 0.1.0
Fiete Ostkamp [Tue, 7 May 2024 12:36:26 +0000 (14:36 +0200)]
Make openapi dependencies in bff compileOnly

- make openapi deps compileOnly
- adjust instructions for locally running the app

Issue-ID: PORTALNG-95
Change-Id: I0be66ada6046b527b6a5b5c74546193b78535b51
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
13 months agoRead app version from version.properties 48/137848/1
Fiete Ostkamp [Tue, 7 May 2024 12:20:16 +0000 (14:20 +0200)]
Read app version from version.properties

- read app version from version.properties
- make openapi dependencies compileOnly
- run spotless formatter

Issue-ID: PORTALNG-94
Change-Id: I3d3b9f057bc998d90763101ac8f3b32a0df280c1
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
13 months agoFix: Release 0.0.9 version 32/137832/1
Jessica Wagantall [Thu, 2 May 2024 15:12:54 +0000 (08:12 -0700)]
Fix: Release 0.0.9 version

Issue-ID: CIMAN-33
Change-Id: I67a122f40b3c7f8f0eaa7daa2f315a197e8bf2f6
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
13 months agoFix: Add version.properties file 11/137811/2 0.0.9
Jessica Wagantall [Mon, 29 Apr 2024 18:25:27 +0000 (11:25 -0700)]
Fix: Add version.properties file

Needed by Docker stage to manage the image version

Issue-ID: CIMAN-33
Change-Id: Ia30e043fd516aa62bc3b7e53b6a6844754131d3a
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
14 months agoRemove hardcoded /auth from the keycloak urls in bff 73/137673/1
Fiete Ostkamp [Thu, 11 Apr 2024 11:57:10 +0000 (13:57 +0200)]
Remove hardcoded /auth from the keycloak urls in bff

- it should be possible not to configure /auth in the Keycloak url
since newer versions do not use it

Issue-ID: PORTALNG-85
Change-Id: I288c8b954db185ed22793db0107d14e314d17c26
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
14 months agoUpdate openapi generator and spring boot in bff 53/137653/1
Fiete Ostkamp [Mon, 8 Apr 2024 13:26:28 +0000 (15:26 +0200)]
Update openapi generator and spring boot in bff

Issue-ID: PORTALNG-84
Change-Id: Ie6a1bd0a93354828f176ba1ed4a92cabbcef3310
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
15 months agoCI: Add call to GHA workflow for gradle verify and CLM 75/137475/2
Jessica Wagantall [Wed, 6 Mar 2024 01:36:09 +0000 (17:36 -0800)]
CI: Add call to GHA workflow for gradle verify and CLM

- This call is silent and does not add a vote.

Issue-ID: CIMAN-33
Change-Id: Ib847186ea1361903ce2b196e045f70395d70118a
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
15 months agoUpdate bff dependencies 61/137461/2
Fiete Ostkamp [Mon, 4 Mar 2024 08:03:11 +0000 (09:03 +0100)]
Update bff dependencies

- update spring boot from 3.0.4 to 3.2.2
- update openapi generator from 7.0.0-beta to 7.3.0
- update micrometer from 1.0.0 to 1.1.4
- add localhost as valid redirect url for the keycloak realm

Issue-ID: PORTALNG-74
Change-Id: I07da27d1b24bb15530d3de49c725ec9e28c40a8c
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
15 months agoportal-ng pods run under root user 56/137456/1
Fiete Ostkamp [Fri, 1 Mar 2024 11:54:20 +0000 (12:54 +0100)]
portal-ng pods run under root user

- use non-root 'nobody' user

Issue-ID: PORTALNG-67
Change-Id: I9f5c90b1dc51565630309ce4f55fc7cfe8840145
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
21 months agoAdd Micrometer [bff] 11/135911/4 montreal
Fiete Ostkamp [Wed, 6 Sep 2023 06:32:33 +0000 (08:32 +0200)]
Add Micrometer [bff]

- add Micrometer dependencies
- uses Zipkin as trace protocol, typically for port 9411
- requires changing dependency injection of WebClient.Builder [1]

[1] Micrometer is injecting the trace context into the WebClient.Builder bean.
To add the ExchangeFilterFunctions for authentication, errorhandling and logging, the existing bean needs to be modified instead of statically creating a new one

Issue-ID: PORTALNG-57
Change-Id: I13dd18d297cd56fa2dfbb525723c79f4abb41f87
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
21 months agoAdjust mongo related environment variables in bff docker-compose file 05/135905/1
Fiete Ostkamp [Mon, 4 Sep 2023 14:32:37 +0000 (16:32 +0200)]
Adjust mongo related environment variables in bff docker-compose file

- services are expecting MONGO_ prefix instead of <SERVICENAME>_ for mongo related settings
- rename requests file

Issue-ID: PORTALNG-55
Change-Id: I371485e5430955907de7ee58c60fd91dd021c2f2
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
21 months agoChange role prefix from onap_ to portal_ [bff] 44/135844/2
Fiete Ostkamp [Tue, 29 Aug 2023 08:30:45 +0000 (10:30 +0200)]
Change role prefix from onap_ to portal_ [bff]

- change the expected role prefix that is used for RBAC from onap_ to portal_
- fix docker-compose file

Issue-ID: PORTALNG-32
Change-Id: Ie3d93d5659ce0573c99278afce5e08fc57d442fd
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
21 months agoConsistently use the preferences and history names in the bff code base - Part 2 43/135843/1
Fiete Ostkamp [Tue, 29 Aug 2023 07:34:06 +0000 (09:34 +0200)]
Consistently use the preferences and history names in the bff code base - Part 2

- some history related properties still had a portal prefix

Issue-ID: PORTALNG-50
Change-Id: Ia044b42c306b8a8837d1cda92f101aebe62283a1
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
22 months agoConsistently use the preferences and history names in the bff code base 95/135795/2
Fiete Ostkamp [Wed, 23 Aug 2023 07:54:43 +0000 (09:54 +0200)]
Consistently use the preferences and history names in the bff code base

- rename openapi clients (client-portal-prefs -> client-preferences, client-portal-history -> client-history, client-portal-keycloak -> client-keycloak)
- rename related spring configurations (portal-prefs -> preferences, portal-history -> history)
- rename related environment variables (PORTAL_PREFS_URL -> PREFERENCES_URL, PORTAL_HISTORY_URL -> HISTORY_URL)
Note that the changes to the configurations and variables affect external services using it and the bff chart

Issue-ID: PORTALNG-49
Change-Id: I434abdf130a5a81534c2387143b296122408d452
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
22 months agoUpdate to spring boot 3 91/135791/1
Fiete Ostkamp [Tue, 22 Aug 2023 14:04:30 +0000 (16:04 +0200)]
Update to spring boot 3

Issue-ID: PORTALNG-48
Change-Id: I8e8a410bd4ea399550975fc509a9d34bb2fe9c92
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
22 months agoMigrate away from legacy gradle buildscript syntax 88/135788/2
Fiete Ostkamp [Tue, 22 Aug 2023 09:58:20 +0000 (09:58 +0000)]
Migrate away from legacy gradle buildscript syntax

- replace the buildscript way of declaring plugins with the plugins {} block
- have duplicate openapi client declarations since programmatic way of registering openapiGenerate task does not seem to be working

Issue-ID: PORTALNG-47
Change-Id: I9e007127726e558363409d1b224dc7b2b9e52719
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
22 months agoUpgrade gradle wrapper to 8 [bff] 77/135777/1
Fiete Ostkamp [Mon, 21 Aug 2023 09:32:13 +0000 (09:32 +0000)]
Upgrade gradle wrapper to 8 [bff]

Issue-ID: PORTALNG-43
Change-Id: I8e80b4ec996afb11cb09b47b8daf0b197c7ce466
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
22 months agoUse more of the new plugin syntax in the bff build.gradle files 76/135776/2
Fiete Ostkamp [Mon, 21 Aug 2023 08:51:07 +0000 (08:51 +0000)]
Use more of the new plugin syntax in the bff build.gradle files

- replace apply plugin with plugin {} block syntax
- ultimately the buildscript should be replaced, but that currently leads to a StackOverflow during the build

Issue-ID: PORTALNG-42
Change-Id: I6c65127c3f6b8e095ccffb7e930576461fd5901c
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
22 months agoConsistently use the bff name in the bff code base 54/135754/2
Fiete Ostkamp [Wed, 16 Aug 2023 08:01:39 +0000 (08:01 +0000)]
Consistently use the bff name in the bff code base

- rename package name from org.onap.portal.bff to org.onap.portalng.bff
- replace all other occurences of portal-bff with bff

Other:
- remove Sonarqube plugin

Issue-ID: PORTALNG-40
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I50548630212e46a0ab84c88ff5fef743dafe9d38

23 months agoUpgrade bff openapi generator to 6.6.0 32/135532/1
Fiete Ostkamp [Fri, 21 Jul 2023 07:50:50 +0000 (07:50 +0000)]
Upgrade bff openapi generator to 6.6.0

Issue-ID: PORTALNG-21
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I0cf78784b216a80cf6b31fd47fe6ed7e4a8844f5

23 months agoRemove vavr from the bff - part 2 05/135505/2
Fiete Ostkamp [Wed, 19 Jul 2023 09:12:31 +0000 (09:12 +0000)]
Remove vavr from the bff - part 2

Issue-ID: PORTALNG-18
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I54dece01debdc487bdc6c38df1141ddae1f2e97f

23 months agoRename bff artefact 90/135490/1
Fiete Ostkamp [Tue, 18 Jul 2023 07:51:34 +0000 (07:51 +0000)]
Rename bff artefact

Issue-ID: PORTALNG-17
Change-Id: I1d22a38826891aad79c2250128f941c930987536
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
23 months agoRemove vavr 57/135357/1
Fiete Ostkamp [Tue, 11 Jul 2023 08:18:56 +0000 (08:18 +0000)]
Remove vavr

Issue-ID: PORTALNG-12

Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I13cc4998d082b1dbd3ab1c8986e4525cd177cf89

2 years agoSwitch bff docker base image 55/134555/1
Fiete Ostkamp [Mon, 15 May 2023 07:35:26 +0000 (07:35 +0000)]
Switch bff docker base image

Issue-ID: PORTALNG-1

Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I7afde9193743e42851e698a1f826883e2c8161d7

2 years agoUpload bff 53/134153/1
Fiete Ostkamp [Fri, 14 Apr 2023 11:44:19 +0000 (11:44 +0000)]
Upload bff

Issue-ID: PORTAL-1083

Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I50f0a2db2dab28354c32c1ebf5a5e22afb0faade

2 years agoMerge "Automation adds INFO.yaml"
Kevin Sandi [Wed, 5 Apr 2023 17:17:55 +0000 (17:17 +0000)]
Merge "Automation adds INFO.yaml"

2 years agoAutomation adds INFO.yaml 71/133871/2
LF Jenkins CI [Wed, 29 Mar 2023 15:21:33 +0000 (15:21 +0000)]
Automation adds INFO.yaml

Issue-ID: CIMAN-33

Change-Id: I3451dc61f5f0dd906ef6dcd549395a7926325e9a
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
2 years agoChore: Automation adds .gitreview 13/133913/1
lf-jobbuilder [Wed, 29 Mar 2023 15:21:31 +0000 (15:21 +0000)]
Chore: Automation adds .gitreview

Issue-ID: CIMAN-33
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
Change-Id: I26b92dba674445cc790b2ec4f117f876e03c80a4

2 years agoInitial empty repository
LF Jenkins CI [Wed, 29 Mar 2023 15:21:26 +0000 (15:21 +0000)]
Initial empty repository