ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
14.08k stars 3.43k forks source link

Notification template junk activity stream entry on creation #2535

Open AlanCoding opened 6 years ago

AlanCoding commented 6 years ago
ISSUE TYPE
COMPONENT NAME
SUMMARY

creating NT makes 2 entries where a user would probably prefer 1

ENVIRONMENT
STEPS TO REPRODUCE

Create notification template with some private data

view activity stream

EXPECTED RESULTS

just a creation entry

ACTUAL RESULTS

some examples, including a copy action

screen shot 2018-10-26 at 9 14 58 am

As you click on one of the 2nd entries in UI:

{
 "notification_configuration": [
  "{\"username\": \"fooooooo\", \"sender\": \"asdf@invalid.com\", \"recipients\": [\"foo@invaid.com\"], \"use_tls\": false, \"host\": \"foo.invalid\", \"use_ssl\": false, \"password\": \"\", \"port\": 8888}",
  "{\"username\": \"fooooooo\", \"sender\": \"asdf@invalid.com\", \"recipients\": [\"foo@invaid.com\"], \"use_tls\": false, \"host\": \"foo.invalid\", \"use_ssl\": false, \"password\": \"$encrypted$\", \"port\": 8888}"
 ]
}

Better to not create this entry

ADDITIONAL INFORMATION

Kinda related https://github.com/ansible/awx/issues/1500

ryanpetrello commented 4 years ago

After talking with @rebeccahhh, it sounds like this is really just exposing an implementation detail of how we save credential secrets in a two-step process (first we save the credential to generate a primary key, then we update it to encrypt the secret value using the primary key from the insert).

I'm not certain this is really worth addressing, because it would probably be fairly complicated. @AlanCoding it sounds like you and @rebeccahhh discussed this?

That said, I understand that this is a little weird from a UX perspective. @wenottingham do you think it's worth moving mountains to adjust this?

wenottingham commented 4 years ago

If it's matching the operations we currently make in the API, no, it's fine.

ryanpetrello commented 4 years ago

If @AlanCoding agrees with this, then, I'd say it would be better for @rebeccahhh to spend her time on other activity stream hit list items first.