-
Notifications
You must be signed in to change notification settings - Fork 1
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
Authentication issues #2
Comments
Hey @isopy really nice to have first issue :) and really habppy you are using the collection! Some questions before examples
So I have tested in a new dployed ubuntu machine with enviroment variables as follows:
and in playbook
or against an inventory but running the task with delegate_to: localhost
2 Option not using enviroment variables
or against an inventory but running the task with delegate_to: localhost
3 Option defining the credentials as vars (your example)
or against an inventory but running the task with delegate_to: localhost
|
@valkiriaaquatica Wow I must have been working too hard before I submitted the issue, because I see the issue now 😆 I don't have a way to pass my tenable hostname to your module. I'm running this from my localhost to test (which is my laptop) but it will eventually run in AAP in an execution environment so I need a way to specify the tenable hostname so it knows where to hit the API. For example, this is how my task is written that uses the
It doesn't look like your module(s) accept a hostname as a parameter which I think is what I'd need to make this work for me. |
Sorry, for the double post but dug into your code a bit and I see that these modules are meant to work against cloud hosted Tenable. We are actually self hosting 😓 Also, the endpoints for cloud and self hosted are different so it would take a lot more than just adding a hostname parameter to make these work for me. Maybe thats a project that I can tackle a different day. 😄 In any case, sorry for all the noise. |
No worries @isopy !! Thats a really good point btw to be include module from self hosted Tenable. For the moment I dont't have access to a private hosted Tenable server, but maybe some vulunteer or me in the future has access and can develop it! |
Firstly, thanks so much for writing these modules. I'm currently automating host scans within Tenable using the
uri
module extensively and would love to convert it over to use these modules. However, as the title mentions I'm running into an issue authenticating.Here's my task:
Here is the error that I receive:
I've confirmed that the credentials that i'm passing are correct. I can use the same credentials to successfully hit the API via the
uri
module.(I also get the same error when I try to pass the credentials via environment variable as well)
The text was updated successfully, but these errors were encountered: