added hash of the secret key+value to invalidate buildkit cache when value changes

Signed-off-by: Richard <richard@dagger.io>
This commit is contained in:
Richard
2021-09-10 15:10:39 -06:00
committed by Richard Jones
parent 7073bc89c0
commit 0666d6f55a
2 changed files with 9 additions and 2 deletions

View File

@@ -44,6 +44,8 @@ func (s *inputStore) GetSecret(ctx context.Context, id string) ([]byte, error) {
id = strings.TrimPrefix(id, secretPrefix)
id = strings.Split(id, ";hash=")[0]
input, ok := s.st.Inputs[id]
if !ok {
return nil, secrets.ErrNotFound