Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
243 commits
Select commit Hold shift + click to select a range
f2435ad
Update main-build.conf
VinceMacBuche Jul 16, 2024
c4418d7
Update Jenkinsfile version
VinceMacBuche Jul 16, 2024
02eb224
Merge branch 'branches/rudder/8.2'
Jul 18, 2024
1f5115e
Merge branch 'branches/rudder/8.2'
VinceMacBuche Jul 23, 2024
98bf594
Update submodules
Jul 25, 2024
264cad8
Merge branch 'branches/rudder/8.2'
Jul 26, 2024
c4ed026
Merge branch 'branches/rudder/8.2'
Jul 26, 2024
f9bd7a1
Merge branch 'branches/rudder/8.2'
Aug 8, 2024
a1fdd7c
Merge branch 'branches/rudder/8.2'
clarktsiory Aug 20, 2024
bbd387b
Merge branch 'branches/rudder/8.2'
clarktsiory Aug 23, 2024
2f1978f
Merge branch 'branches/rudder/8.2'
Aug 30, 2024
c8722b8
Merge branch 'branches/rudder/8.2'
Aug 30, 2024
3dab4fd
Merge branch 'branches/rudder/8.2'
Sep 2, 2024
5025c05
Update submodules
Sep 6, 2024
da2cfb9
Merge branch 'branches/rudder/8.2'
Sep 6, 2024
8ae1f5e
Merge branch 'branches/rudder/8.2'
Sep 12, 2024
e444117
Merge branch 'branches/rudder/8.2'
clarktsiory Sep 12, 2024
b6de58f
Merge branch 'branches/rudder/8.2'
clarktsiory Sep 13, 2024
6075e08
Merge branch 'branches/rudder/8.2'
clarktsiory Sep 16, 2024
8b2ae11
Merge branch 'branches/rudder/8.2'
clarktsiory Sep 18, 2024
95d6fb3
Merge branch 'branches/rudder/8.2'
VinceMacBuche Sep 18, 2024
037beb9
Merge branch 'branches/rudder/8.2'
VinceMacBuche Sep 18, 2024
071eeec
Merge branch 'branches/rudder/8.2'
clarktsiory Sep 18, 2024
8f05558
Merge branch 'branches/rudder/8.2'
clarktsiory Sep 18, 2024
762f9d4
Merge branch 'branches/rudder/8.2'
VinceMacBuche Sep 20, 2024
d7ad6fd
Merge branch 'branches/rudder/8.2'
VinceMacBuche Sep 23, 2024
6072fdb
Merge branch 'branches/rudder/8.2'
Sep 27, 2024
85c1f70
Merge branch 'branches/rudder/8.2'
Oct 10, 2024
09ca70e
Merge branch 'branches/rudder/8.2'
Oct 11, 2024
91698f9
Update submodules
Oct 31, 2024
0626ec6
Fixes #25783: Remove NodeInfoService impact - public plugins
fanf Nov 3, 2024
6ff3c17
Fixes #25769: Update scala plugin dependencies
clarktsiory Nov 4, 2024
0a41e42
Merge branch 'branches/rudder/8.2'
clarktsiory Nov 5, 2024
3ffbe26
Merge branch 'branches/rudder/8.2'
Nov 5, 2024
bf81942
Merge branch 'branches/rudder/8.2'
Nov 7, 2024
5e08329
Update submodules
VinceMacBuche Nov 12, 2024
be449b4
Merge branch 'branches/rudder/8.2'
VinceMacBuche Nov 12, 2024
2cd1386
Merge branch 'branches/rudder/8.2'
VinceMacBuche Nov 12, 2024
9614f6c
Merge branch 'bug_25769/update_scala_plugin_dependencies_pr'
Nov 12, 2024
e1563a4
Fixes #25874: Remove NodeInfoService impact on auth-backends
clarktsiory Nov 14, 2024
2455cdb
Merge branch 'branches/rudder/8.2'
Nov 18, 2024
a44e484
Fixes #25891: Remove the api-client dependency fro; OpenSCAP plugin
amousset Nov 18, 2024
d83cf1e
Merge pull request #770 from amousset/arch_25891/remove_the_api_clien…
amousset Nov 18, 2024
232c3db
Merge branch 'branches/rudder/8.2'
VinceMacBuche Nov 25, 2024
eb3ace2
Fixes #25961: Impact of removing rest extractor lift-json methods on …
clarktsiory Nov 27, 2024
d47d0a7
Update submodules
Dec 3, 2024
206fdd0
Merge branch 'arch_25961/impact_of_removing_rest_extractor_lift_json_…
Dec 4, 2024
e52fc2b
Merge branch 'branches/rudder/8.2'
Dec 6, 2024
92bb3d9
Fixes #26048: Update front-end dependencies
RaphaelGauthier Dec 10, 2024
e797c19
Merge branch 'branches/rudder/8.2'
clarktsiory Dec 13, 2024
3e7ce6f
Merge branch 'branches/rudder/8.2'
clarktsiory Dec 13, 2024
0753f9c
Merge branch 'branches/rudder/8.2'
Dec 14, 2024
9a2aef4
Merge branch 'branches/rudder/8.2'
clarktsiory Dec 16, 2024
c2e6c63
Merge branch 'branches/rudder/8.2'
Dec 16, 2024
4f4c599
Fixes #26094: Impact of JsDataLine in change validation
fanf Dec 19, 2024
76378a0
Merge branch 'arch_26048/update_front_end_dependencies_pr'
Dec 19, 2024
2683082
Merge branch 'bug_26094/impact_of_jsdataline_in_change_validation_pr'
Dec 19, 2024
ccc30ca
Fixes #26095: Change main menu (public plugins)
fanf Dec 19, 2024
651a69b
Prepare next branch of plugin
VinceMacBuche Jan 10, 2025
9c1eb79
Switch to branch 9.0
VinceMacBuche Jan 10, 2025
8dfa587
Update submodules
Jan 14, 2025
3633709
Merge branch 'branches/rudder/8.3'
Jan 14, 2025
4359ca1
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
clarktsiory Jan 15, 2025
ccf9f2f
Merge branch 'branches/rudder/8.3'
clarktsiory Jan 15, 2025
27305d0
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
Jan 15, 2025
6da4183
Merge branch 'branches/rudder/8.3'
Jan 15, 2025
0f3d7c1
Fixes #26195: Maven shade plugin update and ignore signatures
clarktsiory Jan 16, 2025
b662067
Merge branch 'branches/rudder/8.3'
Jan 16, 2025
06cbd84
Fixes #26199: Janino dependency was not provided to plugins causing p…
clarktsiory Jan 16, 2025
5ad2ba3
Merge branch 'branches/rudder/8.3'
Jan 16, 2025
bce5845
Prepare next nightly branch of plugin
VinceMacBuche Jan 21, 2025
36ffebe
Fixes #26168: Add OAuth2 Bearer token with client_credentials flow fo…
fanf Jan 13, 2025
89c7236
Update submodules
Jan 27, 2025
69df0c2
Fixes #26291: Add OAuth2 Opaque Accesss Bearer token with client_cre…
fanf Feb 2, 2025
e17dfac
Merge branch 'branches/rudder/8.3'
Feb 6, 2025
0acaa03
Fixes #26313: Change path to webapp logfile in plugins documentation
VinceMacBuche Feb 6, 2025
2ee462d
Merge branch 'branches/rudder/8.3'
Feb 6, 2025
fe0165a
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
Feb 6, 2025
e9d8980
Merge branch 'branches/rudder/8.3'
Feb 6, 2025
cca723c
Fixes #26316: Fix clear text token chimney implicits and default pivo…
clarktsiory Feb 6, 2025
2ff077e
Merge branch 'branches/rudder/8.3'
Feb 6, 2025
5d7ab88
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
RaphaelGauthier Feb 7, 2025
c63dbec
Merge branch 'branches/rudder/8.3'
RaphaelGauthier Feb 7, 2025
c384212
Fixes #26341: Impact of ApiAccount API changes on plugin
fanf Feb 11, 2025
39029bb
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
Feb 11, 2025
0e28b9e
Merge branch 'branches/rudder/8.3'
Feb 11, 2025
f56ecb0
Fixes #26349: Impact of plugins datastructures splitting in plugins
clarktsiory Feb 13, 2025
0c32760
Merge branch 'branches/rudder/8.3'
Feb 13, 2025
fe9658d
Fixes #26356: Impact of plugins datastructures splitting in plugins-p…
clarktsiory Feb 14, 2025
40a8f0c
Merge branch 'branches/rudder/8.3'
Feb 14, 2025
d1ad097
Fixes #26361: Add a new requires_license field in the metadata in ru…
Fdall Feb 14, 2025
f9e1b43
Merge branch 'branches/rudder/8.3'
Feb 15, 2025
aa962d9
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
ElaadF Feb 18, 2025
3c5abb0
Merge branch 'branches/rudder/8.3'
Feb 18, 2025
500afd1
Fixes #26397: Impact of 24872 (API rights) on public plugins
fanf Feb 19, 2025
09718ce
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
Feb 20, 2025
2eb2574
Merge branch 'branches/rudder/8.3'
Feb 20, 2025
0748d9e
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
Feb 20, 2025
3bb91d5
Merge branch 'branches/rudder/8.3'
Feb 20, 2025
62acfcf
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
VinceMacBuche Feb 27, 2025
e87cba9
Merge branch 'branches/rudder/8.3'
VinceMacBuche Feb 27, 2025
2e89744
Merge branch 'bug_26341/impact_of_apiaccount_api_changes_on_plugin_pr…
Feb 28, 2025
51aa0fe
Merge branch 'branches/rudder/8.3'
Feb 28, 2025
b81781f
Merge branch 'arch_26397/impact_of_24872_api_rights_on_public_plugins…
Feb 28, 2025
3bfb09c
Merge branch 'branches/rudder/8.3'
Feb 28, 2025
c20a014
Fixes #26457: Impact of #26335 to ApiAuthorization - again
fanf Feb 28, 2025
c46ef97
Merge branch 'branches/rudder/8.3'
Feb 28, 2025
7e83e35
Fixes #26460: Impact of Scala 3 - 26459 - public plugins
fanf Mar 3, 2025
32633aa
Merge branch 'branches/rudder/8.3'
Mar 3, 2025
260348b
Fixes #26474: Rename the field requires_license to requires-license
Fdall Mar 5, 2025
c189708
Merge branch 'branches/rudder/8.3'
Mar 5, 2025
bfab6c6
Fixes #26477: Add missing licenses
amousset Mar 5, 2025
8c92863
Merge branch 'branches/rudder/8.3'
Mar 5, 2025
4a9b9fc
Prepare next nightly branch of plugin
VinceMacBuche Mar 6, 2025
a8217ea
Prepare next nightly branch of plugin
VinceMacBuche Mar 6, 2025
68b0460
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
VinceMacBuche Mar 11, 2025
361aab9
Merge branch 'branches/rudder/8.3'
VinceMacBuche Mar 11, 2025
30279e3
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
Mar 13, 2025
14cc661
Merge branch 'branches/rudder/8.3'
Mar 13, 2025
8b22af9
Prepare next branch of plugin
VinceMacBuche Mar 17, 2025
3e0f00c
Fixes #26583: Navbar menu is broken
RaphaelGauthier Mar 20, 2025
f63a1cc
Fixes #26594: Impact of #26538 on api-authorization
fanf Mar 21, 2025
040066a
Fixes #26608: CurrentUser.queryContext is null when used in a ZIO for…
fanf Mar 24, 2025
c33008b
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
fanf Mar 24, 2025
f96896f
Merge branch 'branches/rudder/9.0'
fanf Mar 24, 2025
c8e2ba3
Merge branch 'bug_26608/currentuser_querycontext_is_null_when_used_in…
fanf Mar 24, 2025
be72d4e
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
fanf Mar 24, 2025
21656a5
Merge branch 'branches/rudder/9.0'
fanf Mar 24, 2025
dfb5882
Merge branch 'bug_26594/impact_of_26538_on_api_authorization_pr' into…
fanf Mar 25, 2025
461d7a3
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
fanf Mar 25, 2025
d68254b
Merge branch 'branches/rudder/9.0'
fanf Mar 25, 2025
14eaf26
Fixes #26511: Branding plugin display is broken
RaphaelGauthier Mar 19, 2025
143a7f2
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
fanf Mar 27, 2025
ce6e163
Merge branch 'branches/rudder/9.0'
fanf Mar 27, 2025
cb6c59b
Fixes #26647: Change validation links are all broken
fanf Mar 29, 2025
c71c971
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
Mar 31, 2025
9ded9a2
Merge branch 'branches/rudder/9.0'
Mar 31, 2025
afa292a
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
Fdall Apr 3, 2025
bf4fa88
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
Fdall Apr 3, 2025
87b31f6
Merge branch 'branches/rudder/9.0'
Fdall Apr 3, 2025
9e3bf6c
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
Apr 9, 2025
f95219d
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
Apr 9, 2025
fc1b614
Merge branch 'branches/rudder/9.0'
Apr 9, 2025
46e1ee0
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
clarktsiory Apr 9, 2025
8dc3d6b
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
clarktsiory Apr 9, 2025
0d6bfa2
Merge branch 'branches/rudder/9.0'
clarktsiory Apr 9, 2025
80ec042
Prepare next nightly branch of plugin
VinceMacBuche Apr 10, 2025
5ef6a61
Prepare next nightly branch of plugin
VinceMacBuche Apr 10, 2025
d43ddb4
Pass Jenkinsfile release as ns-remap
VinceMacBuche Apr 10, 2025
526dd64
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
VinceMacBuche Apr 10, 2025
19a91fc
Update submodules
VinceMacBuche Apr 10, 2025
7929e9d
Merge branch 'branches/rudder/9.0'
VinceMacBuche Apr 10, 2025
35d4fd6
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
clarktsiory Apr 15, 2025
668a344
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
clarktsiory Apr 15, 2025
096b9cc
Merge branch 'branches/rudder/9.0'
clarktsiory Apr 15, 2025
9512193
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
clarktsiory Apr 15, 2025
bbb3bbc
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
clarktsiory Apr 15, 2025
a7e143a
Merge branch 'branches/rudder/9.0'
clarktsiory Apr 15, 2025
89c3283
Update jenkinsfile version
VinceMacBuche Apr 15, 2025
736240b
Fixes #26698: Refactoring of ValidationNeeded class : replace type Bo…
skaerg Apr 8, 2025
42fe2a3
Prepare next nightly branch of plugin
VinceMacBuche Apr 22, 2025
67c43ae
Prepare next nightly branch of plugin
VinceMacBuche Apr 22, 2025
efc44f9
Merge branch 'branches/rudder/9.0'
Apr 22, 2025
c398297
Fixes #26760: Add a new internal endpoint in order to replace Workflo…
skaerg Apr 17, 2025
0a54436
Merge branch 'branches/rudder/9.0'
Apr 22, 2025
dfa244e
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
VinceMacBuche Apr 23, 2025
0a64138
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
VinceMacBuche Apr 23, 2025
4626591
Merge branch 'branches/rudder/9.0'
VinceMacBuche Apr 23, 2025
c28a0a7
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
Apr 24, 2025
9401cfe
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
Apr 24, 2025
935602d
Merge branch 'branches/rudder/9.0'
Apr 24, 2025
cc0ed6d
Fixes #26770: WoChangeRequestJdbcRepository#updateChangeRequest execu…
skaerg Apr 22, 2025
ed5dd1e
Merge branch 'enh_26770/wochangerequestjdbcrepository_updatechangereq…
Apr 24, 2025
2d5b9ce
Merge branch 'branches/rudder/9.0'
Apr 24, 2025
902b5c2
Fixes #26794: We cannot scroll to the bottom change validation tab
RaphaelGauthier Apr 24, 2025
7bfbb26
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
Apr 25, 2025
32669eb
Merge branch 'branches/rudder/9.0'
Apr 25, 2025
463d7b8
Fixes #26775: Refactoring : use ZIO instead of Box in change-validati…
skaerg Apr 23, 2025
33b4340
Merge branch 'arch_26775/refactoring_use_zio_instead_of_box_in_change…
Apr 29, 2025
e73bd1b
Merge branch 'branches/rudder/9.0'
Apr 29, 2025
ed48cf6
Fixes #26802: Change request JDBC repo tests has the wrong error type…
skaerg Apr 29, 2025
65c7e41
Merge branch 'enh_26802/change_request_jdbc_repo_tests_has_the_wrong_…
Apr 30, 2025
be4c792
Merge branch 'branches/rudder/9.0'
Apr 30, 2025
bde8088
Fixes #26788: Rewrite WorkflowInformation navigation bar in Elm
skaerg Apr 24, 2025
c98bf65
Prepare next nightly branch of plugin
VinceMacBuche May 6, 2025
a150800
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
VinceMacBuche May 6, 2025
ac5afa6
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
VinceMacBuche May 6, 2025
2560173
Merge branch 'branches/rudder/9.0'
VinceMacBuche May 6, 2025
c3b0068
Merge branch 'arch_26788/rewrite_workflowinformation_navigation_bar_i…
May 7, 2025
4841834
Merge branch 'branches/rudder/9.0'
May 7, 2025
d41ff9a
Fixes #26857: Migration from Box to ZIO : Refactor remaining classes …
skaerg May 2, 2025
62e8501
Merge branch 'arch_26857/migration_from_box_to_zio_refactor_remaining…
May 7, 2025
5c06282
Merge branch 'branches/rudder/9.0'
May 7, 2025
47d7b82
Fixes #26713: Documentation for OIDC opaque/JWT bearer tokens
clarktsiory May 6, 2025
c68500f
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
May 7, 2025
7c6397f
Merge branch 'branches/rudder/9.0'
May 7, 2025
3a8d7c4
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
RaphaelGauthier May 7, 2025
62dd0b7
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
RaphaelGauthier May 7, 2025
48c9db2
Merge branch 'branches/rudder/9.0'
RaphaelGauthier May 7, 2025
6a1c108
Fixes #26862: Migration from Box to ZIO : Refactor ChangeRequestJdbcR…
skaerg May 5, 2025
bcb7c26
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
May 16, 2025
df78d6b
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
May 16, 2025
8cae719
Merge branch 'branches/rudder/9.0'
May 16, 2025
6922e7d
Merge branch 'arch_26862/migration_from_box_to_zio_refactor_changereq…
May 21, 2025
ab76fb2
Merge branch 'branches/rudder/9.0'
May 21, 2025
6af578e
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
May 22, 2025
3c88882
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
May 22, 2025
bf6add7
Merge branch 'branches/rudder/9.0'
May 22, 2025
105189a
Fixes #26946: Add the 'Validate All' check box to the WorkflowUsers E…
skaerg May 23, 2025
77894a4
apply elm-format to elm source files
skaerg May 23, 2025
56c425c
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
May 23, 2025
ae96e13
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
May 23, 2025
ceac2ec
Merge branch 'branches/rudder/9.0'
May 23, 2025
f425596
functional 'Validate all changes' checkbox and button
skaerg May 23, 2025
a1aae08
info sections rephrased for clarity
skaerg May 23, 2025
1adfd0e
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
May 27, 2025
e26bc10
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
May 27, 2025
d688c54
Merge branch 'branches/rudder/9.0'
May 27, 2025
2fc66cc
review
skaerg May 27, 2025
186a699
Merge branch 'arch_26946/add_the_validate_all_check_box_to_the_workfl…
May 27, 2025
50fbbb3
Merge branch 'branches/rudder/9.0'
May 27, 2025
e36c835
Fixes #26904: Migrate the ChangeRequestEditForm snippet from Scala/li…
skaerg May 16, 2025
e25ee0d
Merge branch 'arch_26904/migrate_the_changerequesteditform_snippet_fr…
May 28, 2025
1db32e5
Merge branch 'branches/rudder/9.0'
May 28, 2025
47cd7d3
Fixes #26953: ChangeRequestJdbcRepository ignores error when change r…
skaerg May 26, 2025
7b8c46f
Merge branch 'branches/rudder/9.0'
May 30, 2025
991f18e
Fixes #27007: API tests no longer pass because of ChangeRequestApi ch…
skaerg Jun 2, 2025
3f5904e
Merge branch 'branches/rudder/9.0'
Jun 2, 2025
3a33208
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
Jun 2, 2025
539a884
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
Jun 2, 2025
cf4aafd
Merge branch 'branches/rudder/9.0'
Jun 2, 2025
a7d936c
Fixes #27029: Change request count Elm WorkflowInformation app needs …
clarktsiory Jun 3, 2025
42a18f3
Fixes #26951: Plugins need CSP to be strict in Rudder but disabled in…
clarktsiory Jun 3, 2025
df08a37
Fixes #26965: Merge the SupervisedTargets and WorkflowUser Elm apps i…
skaerg May 27, 2025
6de45b7
Merge branch 'branches/rudder/9.0'
Jun 3, 2025
80c5e81
Merge branch 'arch_27029/change_request_count_elm_workflowinformation…
Jun 3, 2025
a6e4a0c
Merge branch 'branches/rudder/9.0'
Jun 3, 2025
0e4d227
Merge branch 'ust_26951/plugins_need_csp_to_be_strict_in_rudder_but_d…
clarktsiory Jun 4, 2025
7611314
Merge branch 'branches/rudder/9.0'
clarktsiory Jun 4, 2025
b249532
Prepare next nightly branch of plugin
VinceMacBuche Jun 4, 2025
3c6b2ec
Merge branch 'branches/rudder/8.2' into branches/rudder/8.3
VinceMacBuche Jun 4, 2025
39d00c2
Merge branch 'branches/rudder/8.3' into branches/rudder/9.0
VinceMacBuche Jun 4, 2025
6cb3680
Merge branch 'branches/rudder/9.0'
VinceMacBuche Jun 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

def failedBuild = false
def minor_version = "8.2"
def minor_version = "9.1"
def version = "${minor_version}"
def changeUrl = env.CHANGE_URL
def slackResponse = null
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile-security
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

def version = "8.2"
def version = "9.1"
def changeUrl = env.CHANGE_URL
def job = ""
def errors = []
Expand Down
3 changes: 2 additions & 1 deletion api-authorizations/packaging/metadata
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"jar-files": [ "/opt/rudder/share/plugins/${plugin-name}/${plugin-name}.jar" ],
"content": {
"files.txz": "/opt/rudder/share/plugins"
}
},
"requires-license": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
package com.normation.plugins.apiauthorizations

import com.normation.plugins.PluginEnableImpl
import com.normation.rudder.services.nodes.NodeInfoService
import com.normation.rudder.facts.nodes.NodeFactRepository

final class CheckRudderPluginEnableImpl(nodeInfoService: NodeInfoService) extends PluginEnableImpl
final class CheckRudderPluginEnableImpl(nodeFactRepo: NodeFactRepository) extends PluginEnableImpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
package com.normation.plugins.apiauthorizations

import com.normation.plugins.LicensedPluginCheck
import com.normation.rudder.services.nodes.NodeInfoService
import com.normation.rudder.facts.nodes.NodeFactRepository
import com.normation.zio.*

final class CheckRudderPluginEnableImpl(nodeInfoService: NodeInfoService) extends LicensedPluginCheck {
final class CheckRudderPluginEnableImpl(nodeFactRepo: NodeFactRepository) extends LicensedPluginCheck {
// here are processed variables
def pluginResourcePublickey = "${plugin-resource-publickey}"
def pluginResourceLicense = "${plugin-resource-license}"
def pluginDeclaredVersion = "${plugin-declared-version}"
def pluginId = "${plugin-fullname}"

override def getNumberOfNodes: Int = nodeInfoService.getNumberOfManagedNodes.runNow
override def getNumberOfNodes: Int = nodeFactRepo.getNumberOfManagedNodes().runNow
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class AclLevel(status: PluginStatus) extends ApiAuthorizationLevelService {
*/
object ApiAuthorizationsConf extends RudderPluginModule {
// by build convention, we have only one of that on the classpath
lazy val pluginStatusService = new CheckRudderPluginEnableImpl(RudderConfig.nodeInfoService)
lazy val pluginStatusService = new CheckRudderPluginEnableImpl(RudderConfig.nodeFactRepository)

// override default service level
RudderConfig.apiAuthorizationLevelService.overrideLevel(new AclLevel(pluginStatusService))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class UserInformationExtension(
</div>
</li>

<script>
<script data-lift="with-nonce">
//<![CDATA[
// init elm app
$(document).ready(function(){
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,18 @@ import bootstrap.liftweb.AuthBackendProvidersManager
import com.normation.errors.*
import com.normation.eventlog.ModificationId
import com.normation.rudder.api.*
import com.normation.rudder.apidata.JsonApiAcl
import com.normation.rudder.facts.nodes.NodeSecurityContext
import com.normation.rudder.repository.ldap.JsonApiAuthz
import com.normation.rudder.rest.*
import com.normation.rudder.rest.UserApi
import com.normation.rudder.rest.data.*
import com.normation.rudder.rest.implicits.ToLiftResponseOne
import com.normation.rudder.rest.lift.*
import com.normation.rudder.users.UserRepository
import com.normation.utils.DateFormaterService
import com.normation.utils.StringUuidGenerator
import io.scalaland.chimney.Transformer
import io.scalaland.chimney.syntax.*
import net.liftweb.http.LiftResponse
import net.liftweb.http.Req
import org.joda.time.DateTime
Expand All @@ -71,17 +73,13 @@ class UserApiImpl(
def schemas: ApiModuleProvider[UserApi] = UserApi

def getLiftEndpoints(): List[LiftApiModule] = {
UserApi.endpoints
.map(e => {
e match {
case UserApi.GetTokenFeatureStatus => GetTokenFeatureStatus
case UserApi.GetApiToken => GetApiToken
case UserApi.CreateApiToken => CreateApiToken
case UserApi.DeleteApiToken => DeleteApiToken
case UserApi.UpdateApiToken => UpdateApiToken
}
})
.toList
UserApi.endpoints.map {
case UserApi.GetTokenFeatureStatus => GetTokenFeatureStatus
case UserApi.GetApiToken => GetApiToken
case UserApi.CreateApiToken => CreateApiToken
case UserApi.DeleteApiToken => DeleteApiToken
case UserApi.UpdateApiToken => UpdateApiToken
}
}

/*
Expand Down Expand Up @@ -128,13 +126,13 @@ class UserApiImpl(

def process0(version: ApiVersion, path: ApiPath, req: Req, params: DefaultParams, authzToken: AuthzToken): LiftResponse = {
val now = DateTime.now
val secret = ApiToken.generate_secret(tokenGenerator)
val hash = ApiToken.hash(secret)
val secret = ApiTokenSecret.generate(tokenGenerator)
val hash = ApiTokenHash.fromSecret(secret)
val account = ApiAccount(
ApiAccountId(authzToken.qc.actor.name),
ApiAccountKind.User,
ApiAccountName(authzToken.qc.actor.name),
ApiToken(hash),
Some(hash),
s"API token for user '${authzToken.qc.actor.name}'",
isEnabled = true,
now,
Expand All @@ -145,7 +143,7 @@ class UserApiImpl(

writeApi
.save(account, ModificationId(uuidGen.newUuid), authzToken.qc.actor)
.map(RestAccountsResponse.fromUnredacted(_, secret))
.map(RestAccountsResponse.fromUnredacted(_, secret.exposeSecret()))
.chainError(s"Error when trying to save user '${authzToken.qc.actor.name}' API token")
.toLiftResponseOne(params, schema, None)
}
Expand Down Expand Up @@ -180,17 +178,12 @@ class UserApiImpl(
object UserApiImpl {

/**
* The value that will be displayed in the API response for the token.
*/
* The value that will be displayed in the API response for the token.
*/
final case class ClearTextToken(value: String) extends AnyVal

object ClearTextToken {

implicit val transformer: Transformer[ApiToken, ClearTextToken] = Transformer
.define[ApiToken, ClearTextToken]
.withFieldComputed(_.value, token => if (token.isHashed) "" else token.value)
.buildTransformer

implicit val encoder: JsonEncoder[ClearTextToken] = JsonEncoder[String].contramap(_.value)
}

Expand All @@ -206,13 +199,12 @@ object UserApiImpl {
expirationDate: Option[String],
expirationDateDefined: Boolean,
authorizationType: Option[ApiAuthorizationKind],
acl: Option[List[JsonApiAcl]]
acl: Option[List[JsonApiAuthz]]
)

object RestApiAccount extends UserJsonCodec {
object RestApiAccount extends ApiAccountCodecs {
implicit class ApiAccountOps(val account: ApiAccount) extends AnyVal {
import ApiAccountKind.*
import io.scalaland.chimney.syntax.*
def expirationDate: Option[String] = {
account.kind match {
case PublicApi(_, expirationDate) => expirationDate.map(DateFormaterService.getDisplayDateTimePicker)
Expand All @@ -229,13 +221,13 @@ object UserApiImpl {
}
}

def acl: Option[List[JsonApiAcl]] = {
def acl: Option[List[JsonApiAuthz]] = {
import ApiAuthorization.*
account.kind match {
case PublicApi(authz, expirationDate) =>
authz match {
case None | RO | RW => Option.empty
case ACL(acls) => Some(acls.flatMap(x => x.actions.map(a => JsonApiAcl(x.path.value, a.name))))
case ACL(acls) => Some(acls.map(x => JsonApiAuthz(x.path.value, x.actions.toList.map(_.name))))
}
case User | System => Option.empty
}
Expand All @@ -254,6 +246,7 @@ object UserApiImpl {

implicit val transformer: Transformer[ApiAccount, RestApiAccount] = Transformer
.define[ApiAccount, RestApiAccount]
.withFieldConst(_.token, ClearTextToken("")) // if the hash need to be exposed, it's done post transformation
.withFieldComputed(_.kind, _.kind.kind)
.withFieldComputed(_.acl, _.acl)
.withFieldComputed(_.expirationDate, _.expirationDate)
Expand All @@ -264,9 +257,6 @@ object UserApiImpl {
)
.buildTransformer

implicit val publicTokenEncoder: JsonEncoder[ApiToken] =
JsonEncoder[String].contramap(_.value)

implicit val encoder: JsonEncoder[RestApiAccount] = DeriveJsonEncoder.gen[RestApiAccount]
}

Expand Down Expand Up @@ -312,7 +302,7 @@ object UserApiImpl {
accounts: RestAccountId
)

object RestAccountIdResponse extends UserJsonCodec {
object RestAccountIdResponse extends ApiAccountCodecs {
implicit val accountIdResponseEncoder: JsonEncoder[RestAccountId] = DeriveJsonEncoder.gen[RestAccountId]
implicit val encoder: JsonEncoder[RestAccountIdResponse] = DeriveJsonEncoder.gen[RestAccountIdResponse]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.normation.eventlog.EventActor
import com.normation.eventlog.ModificationId
import com.normation.rudder.api.ApiAccount
import com.normation.rudder.api.ApiAccountId
import com.normation.rudder.api.ApiToken
import com.normation.rudder.api.ApiTokenHash
import com.normation.rudder.api.RoApiAccountRepository
import com.normation.rudder.api.TokenGenerator
import com.normation.rudder.api.WoApiAccountRepository
Expand All @@ -27,7 +27,7 @@ class MockServices(newToken: String, accounts: Map[ApiAccountId, ApiAccount] = M
}

override def getAllStandardAccounts: IOResult[Seq[ApiAccount]] = ???
override def getByToken(token: ApiToken): IOResult[Option[ApiAccount]] = ???
override def getByToken(token: ApiTokenHash): IOResult[Option[ApiAccount]] = ???
override def getSystemAccount: ApiAccount = ???
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,11 @@ import better.files.*
import com.normation.errors.IOResult
import com.normation.errors.effectUioUnit
import com.normation.rudder.AuthorizationType
import com.normation.rudder.api.ApiAccount
import com.normation.rudder.api.ApiAccountId
import com.normation.rudder.api.ApiAccountKind
import com.normation.rudder.api.ApiAccountName
import com.normation.rudder.api.ApiAuthorization
import com.normation.rudder.api.ApiToken
import com.normation.rudder.api.ApiVersion
import com.normation.rudder.api.*
import com.normation.rudder.facts.nodes.NodeSecurityContext
import com.normation.rudder.rest.RestTestSetUp
import com.normation.rudder.rest.TraitTestApiFromYamlFiles
import com.normation.rudder.users.AuthenticatedUser
import com.normation.rudder.users.RudderAccount
import com.normation.rudder.users.UserService
import com.normation.rudder.users.*
import java.nio.file.Files
import org.joda.time.DateTime
import org.joda.time.DateTimeUtils
Expand All @@ -43,7 +35,7 @@ class UserApiTest extends ZIOSpecDefault {
ApiAccountId("user1"),
ApiAccountKind.System, // so that we have access to the plugin endpoints
ApiAccountName("user1"),
ApiToken("v2:some-hashed-token"),
Some(ApiTokenHash.fromHashValue("v2:some-hashed-token")),
"number one user",
isEnabled = true,
creationDate = accountCreationDate,
Expand Down
Loading