Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿ”€ :: golang๋ฅผ ์‚ฌ์šฉํ•œ accessToken ๊ฐฑ์‹  ์Šคํฌ๋ฆฝํŠธ #263

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

KimTaeO
Copy link
Contributor

@KimTaeO KimTaeO commented Feb 4, 2024

๐Ÿ’ก ๊ฐœ์š”

golang์œผ๋กœ prometheus์˜ ํ† ํฐ์„ ์ž๋™์œผ๋กœ ๊ฐฑ์‹ ํ•ด์ค„ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ž‘์„ฑํ–ˆ์–ด์š”

๐Ÿ“ƒ ์ž‘์—…๋‚ด์šฉ

gauth ์„œ๋ฒ„์— ๋กœ๊ทธ์ธ์š”์ฒญ์„ ๋ณด๋‚ด์–ด accessToken์„ ์‘๋‹ต์œผ๋กœ ๋ฐ›์•„ ํŒŒ์ผ์— ์“ฐ๋„๋ก ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ž‘์„ฑํ–ˆ์–ด์š”

๐Ÿ”€ ๋ณ€๊ฒฝ์‚ฌํ•ญ

private EC2์˜ .bashrc์— ํ™˜๊ฒฝ๋ณ€์ˆ˜๋กœ GAUTH_SERVER_URL, GAUTH_USER_NAME, GAUTH_PASSWORD์ถ”๊ฐ€ํ•ด์ฃผ์–ด์•ผํ•ด์š”

๐Ÿ™‹โ€โ™‚๏ธ ์งˆ๋ฌธ์‚ฌํ•ญ

  • Golang์„ ์‹คํ–‰์‹œํ‚ฌ ํ™˜๊ฒฝ์„ Docker๋กœ ์„ธํŒ…์„ ํ•ด๋ณด๋ ค ํ•˜๋Š”๋ฐ ๊ทธ๋ƒฅ ์ €ํฌ๊ฐ€ docker image pull์„ ํ•˜๋“ฏ์ด ec2์—๋„ pullํ•ด์„œ golang์„ ์„ค์น˜ํ•˜๋ฉด ๋˜๋Š”๊ฑธ๊นŒ์š”?
  • jwt๋ฅผ ๋‹ด์„ ํŒŒ์ผ์˜ ์ ‘๊ทผ ๊ถŒํ•œ์„ ์„ค์ •ํ•˜๋Š” ๊ฒƒ์€ ์ผ๋‹จ์€ ๋ชจ๋“  ์‚ฌ์šฉ์ž๊ฐ€ ์ฝ๊ณ , ์“ฐ๊ณ , ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” 777๋กœ ์„ค์ •ํ•ด ๋‘์—ˆ๋Š”๋ฐ ์ด๊ฑด ์–ด๋–ป๊ฒŒ ์กฐ์ •ํ•˜๋ฉด ์ข‹์„๊นŒ์š”?

๐ŸŽธ ๊ธฐํƒ€

์‹คํ–‰ ํ๋ฆ„์€ ๋…ธ์…˜์— ์ •๋ฆฌํ•ด ๋‘์—ˆ์–ด์š”!! ๋งํฌ๋Š” ์—ฌ๊ธฐ์— ์žˆ์–ด์š”
์•„๋ฌด๋‚˜ Golang์„ ์•„์‹ ๋‹ค๋ฉด ๋ฆฌ๋ทฐ๋ฅผ..
์‚ฌ์‹ค Golang์ด ์Šคํฌ๋ฆฝํŠธ๋กœ ์‹คํ–‰์ด ์ž˜ ๋ ์ง€๋„ ๋ชจ๋ฅด๊ฒ ๊ธด ํ•ฉ๋‹ˆ๋‹ค..

@KimTaeO KimTaeO added the 2๏ธโƒฃPriority: Medium ์šฐ์„ ์ˆœ์œ„ ์ค‘ label Feb 4, 2024
@KimTaeO KimTaeO self-assigned this Feb 4, 2024
@KimTaeO KimTaeO merged commit ae6c1cc into main Feb 7, 2024
1 check passed
@KimTaeO KimTaeO deleted the 262-add/prometheus-jwt-authorization-script branch February 7, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2๏ธโƒฃPriority: Medium ์šฐ์„ ์ˆœ์œ„ ์ค‘
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prometheus์˜ jwt ์ธ์ฆ์„ ์œ„ํ•œ ์Šคํฌ๋ฆฝํŠธ ์ž‘์„ฑ
2 participants