#!/usr/bin/env python3import sysimport base64import jsonfrom keeper_secrets_manager_core import SecretsManager# sys.stdinは配列ではありませんので、サブスクリプトでアクセスできません(つまり、sys.stdin [0])for base64_params in sys.stdin: params = json.loads(base64.b64decode(base64_params).decode())print(f"providerRecordUid={params.get('providerRecordUid')}")print(f"resourceRecordUid={params.get('resourceRecordUid')}")print(f"userRecordUid={params.get('userRecordUid')}")print(f"newPassword={params.get('newPassword')}")print(f"oldPassword={params.get('oldPassword')}")print(f"user={params.get('user')}") records = json.loads(base64.b64decode(params.get('records')).decode())print("Provider Title="f"{next((x for x in records if x['uid'] == params.get('providerRecordUid')), None).get('title')}") ksm =SecretsManager(config=...) resource_records = ksm.get_secrets(params.get('userRecordUid'))[0]break