open-horizon / open-horizon/devops
OpenHorizon captures (and send into docker) trailing whitespace in environment variables (AnyLog testing)
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 12
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
During deployment test with Anylog (in an Agent/Edge Node) we noticed that OpenHorizon captures (and send into docker) trailing whitespace in environment variables
Stepts to reproduce:
Set env variables for AnyLog (in docker-makefiles/) – for example I’ve set DEFAULT_DBMS in edgelake_operator.env to have an empty space at the end of the value
Deploy node – make publish EDGELAKE_TYPE=operator
Attach to container, you’ll notice a trailing whitespace
root@localhost:~/service-edgelake# docker exec -it 119d9ad92ee6 /bin/sh
/app # echo "|${DEFAULT_DBMS}|"
|edgex |
Expect: No trailing spaces
Actual: trailing space
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in docker-makefiles/ and inspect how edgelake_operator.env is passed by make publish EDGELAKE_TYPE=operator into Docker. Reproduce with DEFAULT_DBMS containing a trailing space, then use docker exec to verify the container receives the value without trailing whitespace.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, shell
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100