Skip to content

Commit dad5957

Browse files
committed
18556 FIX HPE StoreOnce via REST API 4.x: restore authentication after upgrade to 2.5.0
After upgrading from 2.4.0 to 2.5.0, the special agent configured via the rule _HPE StoreOnce via REST API 4.x_ stopped working against the StoreOnce appliance and reported a crash with the message `Missing access token parameter`, even when the configured credentials were correct. The password configured in the rule was not being resolved from the password store before being sent to the StoreOnce REST API. The appliance rejected the login as bad credentials, and the agent crashed while parsing the error response. The configured credentials are now forwarded correctly, and the check works again after the upgrade. SUP-29055 Change-Id: I56b9a6e4b68cbe24b8b27dc6b06b9157b4caeb4d
1 parent 300961f commit dad5957

3 files changed

Lines changed: 30 additions & 5 deletions

File tree

.werks/18556.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[//]: # (werk v3)
2+
# HPE StoreOnce via REST API 4.x: restore authentication after upgrade to 2.5.0
3+
4+
key | value
5+
---------- | ---
6+
date | 2026-05-20T12:25:11.090083+00:00
7+
version | 2.6.0b1
8+
class | fix
9+
edition | community
10+
component | checks
11+
level | 1
12+
compatible | yes
13+
14+
After upgrading from 2.4.0 to 2.5.0, the special agent configured via the rule
15+
_HPE StoreOnce via REST API 4.x_ stopped working against the StoreOnce appliance
16+
and reported a crash with the message `Missing access token parameter`, even
17+
when the configured credentials were correct.
18+
19+
The password configured in the rule was not being resolved from the password
20+
store before being sent to the StoreOnce REST API. The appliance rejected the
21+
login as bad credentials, and the agent crashed while parsing the error
22+
response.
23+
24+
The configured credentials are now forwarded correctly, and the check works
25+
again after the upgrade.

cmk/plugins/storeonce/server_side_calls/special_agent4x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def commands_function(
2525
command_arguments: list[str | Secret] = [
2626
"--user",
2727
params.user,
28-
"--password",
28+
"--password-id",
2929
params.password,
3030
host_config.name,
3131
]

tests/unit/cmk/plugins/storeonce/server_side_calls/test_agent_storeonce4x.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
command_arguments=[
3030
"--user",
3131
"username",
32-
"--password",
32+
"--password-id",
3333
Secret(23),
3434
"hostname",
3535
]
@@ -46,7 +46,7 @@
4646
command_arguments=[
4747
"--user",
4848
"username",
49-
"--password",
49+
"--password-id",
5050
Secret(id=1, format="%s", pass_safely=True),
5151
"hostname",
5252
]
@@ -75,7 +75,7 @@ def test_storeonce4x_argument_parsing_password(
7575
command_arguments=[
7676
"--user",
7777
"username",
78-
"--password",
78+
"--password-id",
7979
Secret(id=1, format="%s", pass_safely=True),
8080
"hostname",
8181
]
@@ -92,7 +92,7 @@ def test_storeonce4x_argument_parsing_password(
9292
command_arguments=[
9393
"--user",
9494
"username",
95-
"--password",
95+
"--password-id",
9696
Secret(id=1, format="%s", pass_safely=True),
9797
"hostname",
9898
"--verify_ssl",

0 commit comments

Comments
 (0)