Похожие чаты

Guys I have a problem with aws code build I'm tryingto

read secrets from secret manager like this:

version: 0.2

env:
secrets-manager:
APACHE_PASSWORD: "arn:aws:secretsmanager:eu-central-1:XXXX:secret:APACHE-otkMOp:password"
phases:
pre_build:
commands:
- echo $APACHE_PASSWORD

But the echo command will print *** (3 stars). How to get actual values?

I even passed the secrets to a dockerfile and inside the dockerfile it was ***

10 ответов

11 просмотров

This is by design, so that you not leak the password to cloudwatch log. The environment variable already contain the required password. Just use it where it suppose to be use

https://stackoverflow.com/questions/72609587/secrets-manager-environment-variables-in-aws-codebuild-echoing-as-in-the-b

Ehsan- Автор вопроса
Sharuzzaman Ahmat Raslan
This is by design, so that you not leak the passwo...

I know that, But to be sure I have the right info I want to get the actuall value I tried to pass it into a dockerfile and echo them on dockerfile, the same result happened

Ehsan- Автор вопроса
Sharuzzaman Ahmat Raslan
This is by design, so that you not leak the passwo...

I even tried to write them to a file and the cat the file, the same result: FROM XXXX.dkr.ecr.eu-central-1.amazonaws.com/python:3.9.19-slim-bullseye WORKDIR /app ARG USER ARG PASSWORD ARG TEST ENV USER_ENV=$USER ENV PASSWORD_ENV=$PASSWORD ENV TEST_ENV=$TEST RUN echo "Starting" && \ echo $USER_ENV && \ echo $PASSWORD_ENV && \ echo $TEST_ENV && \ echo "String written to file $USER_ENV $PASSWORD_ENV $TEST_ENV" > file.txt && \ cat file.txt How to get actual values?

Ehsan
I even tried to write them to a file and the cat t...

Follow the solution given in StackOverflow above. Echo to file and then upload the file to S3. You cannot see the password if you are still inside CodeBuild environment

Ehsan
I even tried to write them to a file and the cat t...

If everything is set up correctly you won't be able to

Ehsan
I even tried to write them to a file and the cat t...

Dude can you describe the actual problem you try to solve with this kind of solution

D
In fact there’s a way to show passwords

But do you really want passwords in plain text in your logs

Raptor Blue Bear
But do you really want passwords in plain text in ...

I once made a password rotation tools in sync with GitHub secrets

Похожие вопросы

Обсуждают сегодня

анрей С какой целью зашёл?
КТ315
35
я часов 15 назад начал пытаться написать хоть что-то напоминающее ос и у меня есть проблема, которую я пытаюсь решить последние часов 5: есть крч 2 исходника с минимальным код...
Al1to
13
Я не очень много работал с потоками, тут возник вопрос - если будет одновременный доступ к памяти из двух разных потоков, это само по себе приведет к ошибке?
The Bird of Hermes
25
Hey @AgentPhalaNetworkBot How many active members are there in this group?
Rahul Sultania
18
а вот интересный вопрос появляется: допустим у нас есть приложение с системой модулей. Будет ли считаться система модуль+прога ассемблерной программой если: а) Прога на Си, м...
Mixail Frolov
29
Foundation controler protected async Task<IActionResult> ExecuteActionAsync<T>(Func<Task<(int statusCode, T result, string message)>> action, string methodName) { var sto...
Jass
6
Друзья всем привет, хочу познакомится с гентой, но пока разнюхиваю обстановку извне. Можете поделится своим опыт насчет поведения генты после обновления всей системы, падала л...
Kupr
18
Yooo, Guys! 🤩 Did you see the latest FunToken stats? We're on fire! 🔥
SpaceGemz
33
Привет. Почему может RabbitMQ через эндпойнт :15692/metrics/detailed?family=queue_metrics не выдавать метрик по конкретной очереди (выдавать нули)? кластер кроля в кубере сост...
Vlad
4
Падает сервис в одной из 100500 инсталляций. По крашрепорту - на System.InitUnits, пересмотрел секции инициализации - ничего криминального не нашел. Модулей - сотни... как бы ...
Михаил Усков
9
Карта сайта