-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inject only secrets without dots in key #1554
Conversation
Signed-off-by: Javier López Barba <javier@okteto.com>
Codecov Report
@@ Coverage Diff @@
## master #1554 +/- ##
==========================================
- Coverage 36.27% 36.26% -0.02%
==========================================
Files 88 88
Lines 8407 8410 +3
==========================================
Hits 3050 3050
- Misses 4990 4993 +3
Partials 367 367
Continue to review full report at Codecov.
|
pkg/cmd/stack/translate.go
Outdated
@@ -101,7 +101,9 @@ func translateServiceEnvFile(ctx context.Context, svc *model.Service, svcName, f | |||
} | |||
|
|||
for _, e := range envList { | |||
secrets[e.Name] = e.Value | |||
if !strings.Contains(e.Name, ".") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's implement it in okteto.GetSecrets
Signed-off-by: Javier López Barba <javier@okteto.com>
What is the use case that this is solving? And is it common for people to have a dot on their secrets? |
@rberrelleza "." secret in an internal okteto secret, like the github token. "." is not allowed for user defined secrets |
Signed-off-by: Javier López Barba javier@okteto.com
Fixes #
Proposed changes