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

Issue with sc.credential.create function due to vault_use_ssl field #761

Open
darwin3md opened this issue Feb 26, 2024 · 1 comment
Open
Labels
bug This is a bug with the pyTenable library Tenable.sc Tenable.sc Package upstream-api The issue is related to the calling API or API Docs

Comments

@darwin3md
Copy link

Description
When attempting to create a cyberark credential, I cannot successfully create it due to the vault_use_ssl field. The field is supposedly optional and defaults to 'True.' However, when I create the credential without passing that specific field, I get an error stating "The vault_use_ssl field is invalid for Credential type 'database'." When I create it by setting the field to True or "True" or "Yes", I get the same error message.

To Reproduce
Steps to reproduce the behavior:

  1. Login and authenticate
  2. Call sc.credential.create('testingCreation', 'database','cyberark',**kw)

Expected behavior
I should be able to create the credential with or without the vault_use_ssl field.

Screenshots
Please see case #01783791 in Tenable Community for an attachment with code snippets.

System Information:

  • OS: Windows 10
  • Architecture: 64bit
  • Version: 10.0.19045
  • Memory 32GB

Additional context
I can successfully create a database credential with the auth_type of 'password' and I can call other functions such as sc.credentials.detail(id) without any problems.

@aseemsavio aseemsavio added Tenable.sc Tenable.sc Package upstream-api The issue is related to the calling API or API Docs labels Feb 27, 2024
@aseemsavio
Copy link
Collaborator

The field vault_use_ssl is only accepted when the auth type is "cyberarkLegacy", and it's not accepted when the same is "cyberark". Also vault_use_ssl is a "yes" or "no" String, and not a boolean string. These will be fixed in the coming release in pyTenable.

The SC team will address the inconsistencies in the SC documentation regarding vault_use_ssl shortly.

@aseemsavio aseemsavio added the bug This is a bug with the pyTenable library label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a bug with the pyTenable library Tenable.sc Tenable.sc Package upstream-api The issue is related to the calling API or API Docs
Projects
None yet
Development

No branches or pull requests

2 participants