Sign in
agent:

Add ssh-key credentials

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

Using this task you can add credentials to the vault

Inputs:

  • cred_label : Give a label to the credentials so that you can reference it in your code. No special characters.
  • type: specify type of credentials [ssh, winrm, jwt, basicauth]
  • username: some username with the credentials
  • ssh-key-file: This should be the name of the ssh key file to be added. This needs to be saved in the folder /usr/src/app/src/keys/ on the cmd-exec container.
  • proxyrole: The proxy role that has access to these credentials
cmd = f"dkv credentials add {cred_label} --role {proxyrole} --conn-type {cred_type} --username {username} --ssh-key-file {ssh_key_file_name}" op = _exe(None, cmd) print(op)
copied