Похожие чаты

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 ответов

27 просмотров

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

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта