Project

Profile

Help

Story #4553

closed

Story #7427: [Epic] As a user, I can audit actions taken by Pulp users

As a user, I can query for task parameter information

Added by daviddavis about 5 years ago. Updated over 3 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Problem

Plugin writers and users want to query tasks by data used as their RQ task parameters. For example, tasks that use base_version as an argument would be useful to query on later.

Solution

Have RQ tasks store the keyword, value pairs in a separate Table that foreign key relate to the Task model. Serialize these for the Task complete serialization.

The attribute can be called kwargs that shows a list of <key, value> tuples.

Security

We should have a decorators available for plugin writers to ensure this feature doesn't leak information it shouldn't. Specifically make a decorator called no_kwargs_recording that will disable the kwargs recording for a task.

Additionally it should take a list of kwarg names that will specifically be not recorded. For example:

no_kwargs_recording('password')
def myfunc(username, password):
    pass

This example would record the 'username' key and its value, but never the 'password' key.

Actions #1

Updated by daviddavis about 5 years ago

  • Tracker changed from Issue to Task
  • % Done set to 0
Actions #2

Updated by bmbouter about 5 years ago

  • Tracker changed from Task to Story
  • Subject changed from Store task parameter information to As a user, I can query for task parameter information
  • Sprint/Milestone deleted (3.0.0)

Removing the 3.0 milestone because this would be a new feature and so it can't go into the GA since it's not already in the RC. Also converting it to a story.

Actions #3

Updated by bmbouter about 5 years ago

  • Description updated (diff)

Rewriting story body

Actions #4

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #5

Updated by daviddavis over 3 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #6

Updated by dalley over 3 years ago

  • Parent issue set to #7427

Also available in: Atom PDF