Open
Description
Steps To Reproduce
require 'bitwarden-sdk-secrets'
bitwarden_settings = BitwardenSDKSecrets::BitwardenSettings.new(
'https://bitwarden.example.com/api',
'https://bitwarden.example.com/identity',
)
bw_client = BitwardenSDKSecrets::BitwardenClient.new(bitwarden_settings)
bw_client.auth.login_access_token('machine_secret')
bw_client.secrets.get_by_ids(['ca10ced3-4626-4a26-b13a-b2e400aeaaea'])
# [{"id" => "ca10ced3-4626-4a26-b13a-b2e400aeaaea",
# "key" => "example_key",
# "organizationId" => "f2461818-dc5f-4a93-b577-b2dd00d202c0"}]
bw_client.secrets.get('ca10ced3-4626-4a26-b13a-b2e400aeaaea')
# {"creationDate" => "2025-05-21T10:35:56.682008100Z",
# "id" => "ca10ced3-4626-4a26-b13a-b2e400aeaaea",
# "key" => "example_key",
# "note" => "",
# "organizationId" => "f2461818-dc5f-4a93-b577-b2dd00d202c0",
# "projectId" => "1ae006db-5e64-4b6e-8ac1-b2de00e996cd",
# "revisionDate" => "2025-05-21T10:35:56.682008200Z",
# "value" => "example_value"}
Expected Result
All details of the secret, not just key name and organization id. the result should be an array of what you receive from secrets.get
Actual Result
only getting key name and organization id
Screenshots or Videos
No response
Additional Context
Using in a Ruby on Rails 8.0.2 app
Operating System
Linux
Operating System Version
Ubuntu 24.04
Build Version
bitwarden-sdk-secrets (1.0.0)
Issue Tracking Info
- I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.