기타(30)
-
mac에서 날짜 계산하기 (gdate)
개요 mac에서는 date 명령어가 gdate로 사용된다. 설치 brew install coreutils 날짜 계산 (현재 기준 180일 전) gdate --date "180 days ago" +"%Y%m%d" 날짜 계산 (현재 기준 180일 후) gdate --date "180 days" +"%Y%m%d"
2024.04.04 -
CSAP (Cloud Security Assurance Program)
개요 한국인터넷진흥원(KISA)에서 주관하는 클라우드 서비스 보안 인증 제도 특징 클라우드서비스 보안인증 유형은 IaaS, SaaS, DaaS가 있으며, 유효기간은 모두 5년 ※ 기존 인증제도(IaaS, SaaS(표준등급, 간편등급), DaaS 등)는 상·중 등급 시행 전까지 인증 신청 가능 전체 발급 현황 ** 출처 https://isms.kisa.or.kr/main/csap/issue/ 103건, 2024-03-25 기준 발급 현황 (IaaS) ** 출처 https://isms.kisa.or.kr/main/csap/issue/ 카카오엔터프라이즈 // 카카오클라우드 공공기관용(IaaS) // 2021-06-09 ~ 2026-06-08 엘지헬로비전 // vCloud (IaaS) // 2020-04-27 ..
2024.03.25 -
NAT 환경에서 공인 아이피 확인 하는 방법
개요 NAT 환경에서는 기본적인 방법으로 내가 사용하는 공인 아이피를 확인 하기 어렵다. 아래는 공인아이피를 CURL을 통해 확인하는 방법에 대해 정리했다. 확인방법 curl icanhazip.com curl ifconfig.me curl icanhazip.com curl ipinfo.io/ip curl ipecho.net/plain curl ident.me curl -s ipinfo.io/ip
2024.01.16 -
라이브킷(LiveKit)에서 API key and secrets 생성하는 방법
개요 라이브킷 서버를 사용하려면 API key와 secrets는 꼭 필요하다. 방법 $ curl -sSL https://get.livekit.io | bash $ livekit-server generate-keys 비고 방법은 간단한데, 방법을 찾기 까지가 쉽지가 않았다. 참고 https://docs.livekit.io/realtime/self-hosting/local/
2023.12.29 -
github forking 정책 제한 하기
개요 레포지토리 포킹가 때로는 큰 보안 사고로 이어지는 경우가 있다. 따라서, Github 조직 레벨에서 forking을 엄격하게 통제하는 것이 좋다. 다행히도 Github의 기본 정책은 forking이 제한되어 있다. Github 조직에서 forking 제한 하기 Organization Profile >> Your organizations >> Settings >> Access >> Member privileges >> Repository forking >> x 참고 https://docs.github.com/en/organizations/managing-organization-settings/managing-the-forking-policy-for-your-organization
2023.12.29 -
ffmpeg output duration
- 개요 ffmpeg duration 알고 싶을 때 - 방법1 time ffmpeg -benchmark -i example.mp4 .................................. real 2m6.365s user 7m52.262s sys 0m13.896s >> real 이 실제 걸린 시간 - 방법2 ffmpeg -benchmark -i video.mp4 .................................. bench: utime=472.192s stime=13.885s rtime=126.131s bench: maxrss=289512kB [aac @ 0x555daac2f000] Qavg: 186.004 >> rtime 이 실제 걸린 시간
2023.10.10 -
chrome 브라우저 전체 화면 스크린샷
- 개요 chrome에서 스크롤된 화면 전체 캡쳐가 필요한 경우 캡쳐가 보안상 막혀 있는 경우 - 방법 개발자모드 F12 >> Ctrl + Shift + P >> Capture full size screenshot 입력 >> Downloads 폴더 확인
2023.09.14 -
WebRTC TURN/TLS on Chrome
- 이슈 "WARNING: error with ICE candidate: 600 Address not associated with the desired network interface." - 원인 Chrome, edge등 chrome 기반 브라우저에서 WebRTC TURN/TLS는 default port만 사용 WebRTC TURN/TLS default port : 3478 - 비고 firefox나 safari에서는 custom port도 사용 가능 - 추가 custom port도 되긴 하지만 초기에는 default port를 추천
2023.07.31 -
Graylog Server with Amazon OpenSearch 2.x
개요 graylog server와 opensearch 2.x를 사용하려면 아래 설정을 추가해야 한다 설정 .env >> #GRAYLOG_ELASTICSEARCH_VERSION=7 Cluster configuration >> Advanced cluster settings >> Allow APIs that can span multiple indices and bypass index-specific access policies -> check Security Configuration >> Access Policy >> Deny -> Allow curl -XPUT https:///_cluster/settings >> "compatibility.override_main_response_version" : true
2023.06.29 -
ECR lifecycle policy 전체 repository 적용
- 개요 ECR Repository를 생성하면 기본적으로 LifeCycle이 적용되지 않으며, 해당 메뉴까지 나눠져 있어서 그냥 데이터가 계속 쌓이면서 과금이 된다. 아래는 계정의 전체 ECR에 untagged image 15개 이상 부터 삭제하라는 LifeCycle을 일괄 적용하는 스크립트이다. - 스크립트 ( ecr_retention_put.sh ) #!/bin/bash for i in $(aws ecr describe-repositories --query 'repositories[*].repositoryName[]' --output text) do aws ecr put-lifecycle-policy --repository-name $i --lifecycle-policy-text "file://pol..
2023.06.28