Add initial integration with Planet satellite image service #111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See doc/nidus-reveal/implementation.md for context. Right now nidus-sync is missing some of the required parts of the Planet integration. This issue is to resolve that. Specifically we need to create an initial connection to planet. I've already added a submodule within nidus-sync for go-planet, which is a library that we're building for interfacing with Planet.
For this issue I just want you to add configuration options in Nidus Sync for authentication with Planet, and during startup of nidus-sync to check that the authentication is working by making a simple authentication check request to planet. This can be done in a goroutine that just logs the result of the test.
PR #112 has been created for this issue.
Summary of changes:
Config: Added three optional Planet auth environment variables to config/config.go:
Startup auth check: New file platform/planet.go with StartPlanetAuthCheck(ctx), called from main.go after platform startup. It spawns a goroutine that waits 2 seconds, then:
Both auth methods are optional — nidus-sync starts normally without them.