muchdogesec / obstracts

Subscribe to cyber-security blogs and have the turned into structured intelligence (as STIX objects)
0 stars 0 forks source link

Add `profile_id` to post endpoints #62

Open himynamesdave opened 1 week ago

himynamesdave commented 1 week ago

Now we have the PATCH endpoints, a profile does not belong to a blog. It belongs to a post. The profile used for extracting data from a post can change over time.

As such we should also add a profile_id object to the

/api/v1/feeds/{feed_id}/posts/

and

/api/v1/feeds/{feed_id}/posts/{post_id}/

endpoints

This was a user can see what profile was actually applied to a post.

fqrious commented 1 week ago

post is not local to obstracts

himynamesdave commented 1 week ago

@fqrious in that case, can we add the job_id it was delivered from

the aim here is to allow user to traceback the profile used

so here user could go to job, and see the profile used in the job -- this would also involve adding profile_id into job object too

fqrious commented 1 week ago

nah, still not possible. post is not recorded on the obstracts db at all. This is an infrastructural problem

himynamesdave commented 1 week ago

Understood, we will add this as a feature request to tackle at a later date