Getting started
- If you have not created a development organization on DevRev before, create a dedicated DevOrg for development purposes where you will be publishing your ADaaS snap-in.
- Install required tools and packages:
- devrev-cli (version 4.7 or higher)
- jq
- golang
- nodejs (version 18.x.x+ or higher)
- Create a new repo from the ADaaS template repo:
On https://github.com/devrev/adaas-template use the dropdown button
Use this template
and thenCreate a new repository
- Copy
Makefile.variable.example
toMakefile.variable
and fill in the required variables. - Configure a keyring for the external system in the
manifest.yaml
. See Keyrings. - Deploy a draft version of your Snap-In to you DevOrg using
make deploy
. - Install the snap-in in your DevRev DevOrg on the web by navigating to Settings > Snap-ins Settings > Imports
Import.
Install snap-in. - Define the connection by navigating to Settings > Imports >
Connections
. - Create an import by navigating to Settings > Imports >
Import.
Creating keyrings
Keyrings are a DevRev-specific mechanism for managing authentication to external systems. They are called Connections in the DevRev app.
Keyrings provide a secure way to store and manage credentials within your DevRev snap-In. This eliminates the need to expose sensitive information like passwords or access tokens directly within your code or configuration files, enhancing overall security. They also provide a valid token by abstracting Oauth token renewal from the end user.
A keyring is used by a worker to authenticate to the external system in API calls. They include the key (for example, a PAT or API key), its type, the organization ID for which a key is valid, and in some cases the organization name.
Read more about keyrings in the developer documentation.
Observability
To observe logs from your snap-in in your development environment use devrev snap_in_package logs | jq
.
To open logs in your favorite editor use devrev snap_in_package logs | code -
See also debugging snap-in.