You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A secret for derek-secret-key (for HMAC) should be read from a file when needed i.e. docker secret create derek-secret-key ./derek-secret-key
Current Behaviour
When creating the HMAC secret via docker secret create derek-secret-key ./derek-secret-key we get an extra new-line in the data we read and that makes the validation of HMAC fail because in the GitHub UI we can only enter a single line of text.
File:
my-secret\n
GitHub:
my-secret
Possible Solution
Work-around - use echo -n | docker secret create derek-secret-key - to suppress the new-line terminator in the file.
Change code to always strip down any new-line characters when reading the HMAC secret.
Steps to Reproduce (for bugs)
See above
Context
Caused frustration for user submitting patch, we need to make this better.
Your Environment
You're using the hosted Derek service
or
You host your own OpenFaaS cluster with Derek installed
Docker version docker version (e.g. Docker 17.0.05 ):
Version: 18.05.0-ce
Are you using Docker Swarm or Kubernetes (FaaS-netes)?
We're using Docker Swarm but this may apply to Kubernetes too.
The text was updated successfully, but these errors were encountered:
Issue identified by @MrTinD
Expected Behaviour
A secret for derek-secret-key (for HMAC) should be read from a file when needed i.e.
docker secret create derek-secret-key ./derek-secret-key
Current Behaviour
When creating the HMAC secret via
docker secret create derek-secret-key ./derek-secret-key
we get an extra new-line in the data we read and that makes the validation of HMAC fail because in the GitHub UI we can only enter a single line of text.File:
GitHub:
Possible Solution
Work-around - use
echo -n | docker secret create derek-secret-key -
to suppress the new-line terminator in the file.Change code to always strip down any new-line characters when reading the HMAC secret.
Steps to Reproduce (for bugs)
Context
Caused frustration for user submitting patch, we need to make this better.
Your Environment
or
docker version
(e.g. Docker 17.0.05 ):We're using Docker Swarm but this may apply to Kubernetes too.
The text was updated successfully, but these errors were encountered: