Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

project.yaml can use URI scheme for job expressions and credential bodies #14

Open
taylordowns2000 opened this issue Feb 28, 2021 · 0 comments

Comments

@taylordowns2000
Copy link
Member

taylordowns2000 commented Feb 28, 2021

in a project.yaml, users should be able to specify URI paths to job expressions, rather than expressions as stings. See portability proposal v3: https://docs.openfn.org/documentation/portability#proposal-v3

Note how credentials are shaped: they either have keys and values inside a keyed object, or only have a path to the full body (i.e., some-credential.json)

jobs:
  job-1:
    expression: "alterState(state => ({ ...state, changed: true }))"
    trigger: trigger-1
  job-2:
    expression: file:///home/taylor/cool-job.js
    trigger: trigger-1
  job-3:
    expression: github:openfn/sample/myJob.js
    trigger: trigger-1
  job-4:
    expression: http://www.github.com/openfn/sample2.js
    trigger: trigger-1

credentials:
  my-secret-credential:
    username: '******'
    password: '******'
  my-other-credential: 'file://gcp_credential.json'

we should start with standard URIs, but maybe include some of the above.

@taylordowns2000 taylordowns2000 changed the title project.yaml can use URI scheme for job expressions project.yaml can use URI scheme for job expressions and credential bodies Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants