All Projects → hashicorp → Sentinel Sdk

hashicorp / Sentinel Sdk

Licence: mpl-2.0
This SDK allows developers to extend Sentinel to source external information for use in their policies.

Programming Languages

go
31211 projects - #10 most used programming language

Sentinel Import SDK

CircleCI GoDoc

This repository contains the Sentinel import SDK. This SDK allows developers to extend Sentinel to source external information for use in their policies.

Sentinel imports can be written in any language, but the recommended language is Go. We provide a high-level framework to make writing imports in Go extremely easy. For other languages, imports can be written by implementing the protocol over gRPC.

To get started writing a Sentinel import, we recommend reading the extending Sentinel guide.

You can also view the import API via GoDoc.

SDK Compatibility Matrix

Sentinel's plugin protocol is, at this time, not backwards compatible. This means that a specific version of the Sentinel runtime is always coupled to a specific version of the plugin protocol, and SDK. The following table can help you determine which version of the SDK is necessary to work with which versions of Sentinel.

Sentinel Version Plugin Protocol Version SDK Version
Current (Up to v0.10.4) 1 Up to v0.1.1
Planned for v0.11.0 2 Since v0.2.0

Development Info

The following tools are required to work with the Sentinel SDK:

After both of these are installed, you can use the following make commands:

  • make test will run tests on the SDK. You can use the TEST and TESTARGS variables to control the packages and test arguments, respectively.
  • make tools will install any necessary Go tools.
  • make generate will generate any auto-generated code. Currently this includes the protocol, mockery files, and the code for the plugin testing toolkit.

The modules, test-circle, and /usr/bin/sentinel targets are only used in Circle and are not necessary for interactive development.

Help and Discussion

For issues specific to the SDK, please use the GitHub issue tracker (the Issues tab).

For general Sentinel support and discussion, please use the Sentinel Community Forum.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].