Skip to content

CLI: only deploy and pull credentials being referenced in jobs #1268

@midigofrank

Description

@midigofrank

Right now, pull will fetch all credentials linked to the project and you might end up with a bloated file. Is it possible to only write/include only credentials linked to the jobs?

Similarly with deploy, all credentials listed will be pushed even though they're not being used in the jobs. Well, deploy is a consequence to pull, if we fix pull then we won't have the "extra" credentials in the first place.

deploy is where it hurts the most tbh, when you want to sync a project from app.openfn and the project has "extra" credentials, you end up having to cleanup the data first before deploying to the target project. Maybe a flag could help here? Like deploy --only-active-credentials ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    New Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions