Skip to content

Read secret from env var - #120

Merged
mpontes merged 13 commits into
masterfrom
read_secret_from_env_var
Sep 12, 2025
Merged

Read secret from env var#120
mpontes merged 13 commits into
masterfrom
read_secret_from_env_var

Conversation

@weronika-malinowska-deltatre

@weronika-malinowska-deltatre weronika-malinowska-deltatre commented Sep 11, 2025

Copy link
Copy Markdown
Contributor

WHAT
Read secrets from env var. This change is backwards compatible, tokens can be provided as command args as well, same way it has been done so far.

WHY
To have more secure way of passing tokens.

AC
When env var is present it is used as token

TESTING:
TASK RUNS SUCCESSFULLY:
Screenshot 2025-09-11 at 18 13 07
Screenshot 2025-09-11 at 18 13 15
FILES PLACED SUCCESSFULLY:
Screenshot 2025-09-11 at 18 14 45

TASK DEFINITION CONFIGURATION - CURRENTLY THE SECRET IS EXPOSED AS PLAINTEXT HERE:
Screenshot 2025-09-11 at 18 27 56
Screenshot 2025-09-11 at 18 30 28

@codecov

codecov Bot commented Sep 11, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...downloader/source/ipinfosite/IpInfoSiteSource.java 0.00% 1 Missing ⚠️
...wnloader/source/maxmindsite/MaxmindSiteSource.java 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@mpontes
mpontes merged commit 5389a71 into master Sep 12, 2025
1 of 2 checks passed
@mpontes
mpontes deleted the read_secret_from_env_var branch September 12, 2025 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants