Slide 6
Slide 6 text
Copyrights©3-shake Inc. All Rights Reserved. 6
Cloud Functions コード実装
def scc_to_pd(event, context):
webhook_url = os.getenv('WEBHOOK_URL', None)
attributes = base64.b64decode(event["data"]).decode("utf-8")
headers = {
"Content-Type": "application/json; charset=UTF-8"
}
data = {
"Data": json.loads(attributes),
}
req = urllib.request.Request(webhook_url, data=json.dumps(data).encode("utf-8"), method="POST", headers=headers)
try:
res = urllib.request.urlopen(req, timeout=5)
except Exception as e:
print(e)
SCC findings の内容を丸ごと送信
- SCC は組織権限がないと参照できないため、対応担当者が見れないケースもある
- PagerDuty や Jira チケット管理により権限問題を解消