Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: CLI for node level secrets not applying to a specific node #3908

Closed
dlarson04 opened this issue Sep 28, 2023 · 1 comment
Closed

Bug: CLI for node level secrets not applying to a specific node #3908

dlarson04 opened this issue Sep 28, 2023 · 1 comment
Assignees

Comments

@dlarson04
Copy link
Contributor

Describe the bug.

Trying to add a node level secret using the CLI

# hzn sm secret add --secretKey test_node --secretDetail 12345   /user/larsond/my-new-test-secret --nodeId=test-node  --overwrite
Secret "/user/larsond/my-new-test-secret" successfully added to the secrets manager.
# hzn sm secret read  /user/larsond/my-new-test-secret   <- This should have failed
{
  "key": "test_node",
  "value": "12345"
}
# hzn sm secret read  /user/larsond/my-new-test-secret --nodeId=test-node <- This correctly succeeds
{
  "key": "test_node",
  "value": "12345"
}
# hzn sm secret read  /user/larsond/my-new-test-secret --nodeId=test-node44 <- This should have failed
{
  "key": "test_node",
  "value": "12345"
}

Also seeing

# hzn sm secret read  user/larsond/my-node-test-secret --nodeId=test-node101
Error: No secret(s) found under secret name "user/larsondnode/test-node101/my-node-test-secret"  <- this have a `/` between `larsond` and `node`
# hzn sm secret read  /user/larsond/my-node-test-secret --nodeId=test-node101  <- Not sure why this didn't honor the nodeId
Error: No secret(s) found under secret name "user/larsond/my-node-test-secret"

Describe the steps to reproduce the behavior.

No response

Expected behavior.

No response

Screenshots.

No response

Operating Environment

Linux

Additional Information

No response

@dlarson04 dlarson04 added the bug label Sep 28, 2023
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Sep 28, 2023
…g to a specific node

Signed-off-by: zhangl <zhangl@us.ibm.com>
@LiilyZhang LiilyZhang self-assigned this Sep 28, 2023
LiilyZhang added a commit to LiilyZhang/anax that referenced this issue Sep 28, 2023
…g to a specific node

Signed-off-by: zhangl <zhangl@us.ibm.com>
LiilyZhang added a commit that referenced this issue Sep 29, 2023
Issue #3908 - Bug: CLI for node level secrets not applyin…
@dlarson04
Copy link
Contributor Author

verified in 2.31.0-1450

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants