Skip to content

Importing a node module and using it on trigger function #5

Description

@celso-alexandre

I've reached your project shortly after knowing that plv8 exists and it was possible to write postgres functions in javascript, which is awesome.

I'm trying to setup a trigger that verifies the signature of a record just inserted/updated using a public key. As I'm using AWS RDS and it does not like to allow unsecure extensions, I've found that if I could import the "createVerify" function from "crypto" module, it would be enough to solve it without much more trouble.

I know that this library is not intended solve this exact problem, but do you think it's possible to import "createVerify" inside a postgres function? (I guess that it's not possible to create a trigger using this lib)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions