replicate / replicate/cog

Support secrets

Open
#314 5 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement type/epic
Dominant language
Go
Stars
9.5k
Forks
696
Avg merge
7d 19h
Merged PRs (30d)
2

Description

Allow passing secrets to a model at boot time.

One use case:

  • A model takes as input an audio URL
  • That URL exists on Freesound, but in order to download it you need an API key
  • The Cog model keeps the API key in memory and authenticates with Freesound to download the audio from the user's URL

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating how Cog boots a model and passes configuration, then determine how the requested secrets should be supplied and retained for the Freesound use case. Done should demonstrate that a model can receive a secret at boot time and use it to authenticate when downloading the user's audio URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, machine-learning, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.