code: func UpdateSecret(tx Tx, s *api.Secret) error {
  	// Ensure the name is either not in use or already used by this same Secret.
  	if existing := tx.lookup(tableSecret, indexName, strings.ToLower(s.Spec.Annotations.Name)); existing != nil {
  		if existing.GetID() != s.ID {
  			return ErrNameConflict
  		}
  	}
  
  	return tx.update(tableSecret, s)
  }
docs: // UpdateSecret updates an existing secret in the store.
  // Returns ErrNotExist if the secret doesn't exist.