Open lhriley opened 2 years ago
Hey @lhriley,
This is a known limitation of the current version of the Operator. Your use case is an interesting one and I can see other folks benefitting from this enhancement.
Do you feel that the release of the injector would solve your use case? or would you still prefer to have this supported in the operator as well?
The op cli can target a section by specifying like this label=AnotherSection.username
so would it be possible to have the same kind of syntax for this? Just use a [section.]{key}
Are there any updates to this?
We just hit the same limitation in our team...
Summary
Support secrets where section headers delineate related sets of secrets that contain the same keys.
Use cases
For some use cases, a secret item may contain multiple sections that describe the same kinds of information (keys) with different values.
For example:
Proposed solution
Create secrets based on the section name as a suffix.
For example:
This should be gate-able via annotations on the
OnePasswordItem
such as:The default behavior should be disabled as sections may not contain duplicate keys.
Alternatively, prefix the key name with the section name:
For example:
This should be gate-able via annotations on the
OnePasswordItem
such as:The default behavior should be disabled as sections may not contain duplicate keys.
Is there a workaround to accomplish this today?
1) Create separate onepassword secret items and
OnePasswordItem
for each corresponding section rather than keeping all secrets in a single item.2) Uniquely name each key / value pair so they don't conflict.
References & Prior Work