Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Default values set for credential data fields are not usable. #2411

@sangee2004

Description

@sangee2004

acorn version - v0.10.0-rc2-9-g43dbcbf4+43dbcbf4

Steps to reproduce the problem:

  1. Deploy app with credentials that have default values set for data fields
secrets: config: {
	type: "credential.acorn.io/mytestcred"
	params: {
		promptOrder: ["username", "password"]
	}
	data: {
		username:      "abc"
		password:      "ppp"
	}
}
containers: {
	mytest: {
		image: "nginx"
	}
}
  1. When user chooses to create a new credential , the default values are not presented when user is prompted to enter values for the fields (it is empty)
? Choose an existing credential or enter a new one Enter a new credential
? password 
? username 
  1. Choosing to enter no values for these fields , does not result in credentials being created with the default values.

Expected Behavior:

  1. Default values should be presented when user is prompted to enter values for the fields .
  2. When user does not do any changes to the existing value, credential should get created with default values set for the data.

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions