moby / moby/swarmkit

Templated config and secrets issue

Open
#2,964 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
3.7k
Forks
676
Avg merge
4d 9h
Merged PRs (30d)
6

Description

Hi

I am trying to have my services load different configs/secrets based on their ID/Slot.

I have the following which is failing:

{{ secret private_key_{{.Task.Slot}} }}

Error: bad character U+007B '{'"

I have tried a few combinations but I can't get it to substitute the inner templated variable Task.Slot.

Can anyone assist in the correct syntax?

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 reproducing the nested template expression and locating the templating implementation that processes service secrets; done means confirming the supported syntax or defining a narrowly scoped fix with regression coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.