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

Could I use Tern as a SDK ? #1096

Open
hectorj2f opened this issue Dec 17, 2021 · 6 comments
Open

Could I use Tern as a SDK ? #1096

hectorj2f opened this issue Dec 17, 2021 · 6 comments
Labels
question Ask a question about the project

Comments

@hectorj2f
Copy link

Please read the Code of Conduct before you proceed
Code of Conduct

Ask your question here
I am interested to know if I could use Tern as a SDK so I can call its functions to be used for sbom generation and scanning.

@nishakm
Copy link
Contributor

nishakm commented Jan 6, 2022

If you were coding in Python you can absolutely import tern and use its functions :). Are you looking for some equivalent in another language?

@hectorj2f
Copy link
Author

I am looking how to consume tern as a plugin, so either exposing its basic functions as grpc endpoints might be an option. Another option would be to mount it as a binary. I am looking at the possible integration points.

@nishakm
Copy link
Contributor

nishakm commented Jan 7, 2022

Thanks @hectorj2f for that clarification. Exposing grpc endpoints sounds like a good place to start planning enhancements. We currently have a simple web app that just invokes tern with reporting functions in various formats. Is there anything else you think we should expose?

@hectorj2f
Copy link
Author

The idea of having a clear API to know inputs and outputs to interact with. It would be great.

@rnjudge
Copy link
Contributor

rnjudge commented Feb 2, 2022

Hi @hectorj2f -- as we start to look at implementing an API, can you provide any more information on your requirements (i.e. specific use cases)? Would a REST API work? Do you need this to run on Kubernetes?

@hectorj2f
Copy link
Author

@rnjudge Yes, I'd expect a basic API with the main functions to call it. A rest API would work, or a gRPC API would be great. We'd like to run a service on kubernetes to call it on demand when requested.

@rnjudge rnjudge added the question Ask a question about the project label Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Ask a question about the project
Projects
None yet
Development

No branches or pull requests

3 participants