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

Error Adding, Editing, and revealing Secret #46

Open
robertlynch3 opened this issue Jun 13, 2022 · 1 comment
Open

Error Adding, Editing, and revealing Secret #46

robertlynch3 opened this issue Jun 13, 2022 · 1 comment

Comments

@robertlynch3
Copy link

I am getting the following error when I add a secret

undefined is not an object (evaluating '(await this.requestWithRenew(o,"POST",{options:{cas:n},data:t})).data')

This appears in the WebUI. The password does get added correctly though.

Same one when I edit a secret.

And when I try to reveal a secret, I get from list.tsx:27

Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'n.version') 

This appears in the console. When I go to edit the password, and reveal the existing one (in the edit page) it works correctly.

@kunamashina
Copy link

kunamashina commented Aug 9, 2022

How did you manage to get it to work?

I can't even make the plugin api authenticate with the vault for some reason

This is my configuration in netbox

PLUGINS = ["netbox_vault_secrets"]

PLUGINS_CONFIG = {
"netbox_vault_secrets": {
"api_url": "http://vault.mbdemo.local:8200", # can be relative
"kv_mount_path": "/secret", # optional
"secret_path_prefix": "/netbox", # optional
"login_methods": ["token"], # optional, defaults to ["token"]
"token": {
"mount_path": "/auth/token", # optional
"roles": { # optional, will use default_role if missing
"netbox": "Netbox", # maps role name to display name
}
},
}
}

All I am getting from the plugin in netbox webui is

Secrets
Loading...

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

No branches or pull requests

2 participants