o
    g                     @   s   g d Z dd ZdS ))zcodepipeline:pollforjobsz"cognito-idp:associatesoftwaretokenzcognito-identity:getopenidtokenz3cognito-identity:getopenidtokenfordeveloperidentityz*cognito-identity:getcredentialsforidentityzconnect:getfederationtokenzconnect:getfederationtokenszecr:getauthorizationtokenz!gamelift:requestuploadcredentialsziam:createaccesskeyziam:createloginprofilez#iam:createservicespecificcredentialz"iam:resetservicespecificcredentialziam:updateaccesskeyziot:assumerolewithcertificatez"lightsail:getinstanceaccessdetailsz1lightsail:getrelationaldatabasemasteruserpasswordzrds-db:connectzredshift:getclustercredentialszsso:getrolecredentialsz,mediapackage:rotateingestendpointcredentialszsts:assumerolezsts:assumerolewithsamlzsts:assumerolewithwebidentityzsts:getfederationtokenzsts:getsessiontokenc                 C   sN   |   }g }|D ]}|tv r|| qt|dkr%| jdd|id d S d S )N    CREDENTIALS_EXPOSUREactions)location)get_allowed_actionsCREDENTIALS_EXPOSURE_ACTIONSappendlenadd_finding)policyr   &credentials_exposure_actions_in_policyaction r   p/home/ubuntu/cloudmapper/venv/lib/python3.10/site-packages/parliament/community_auditors/credentials_exposure.pyaudit    s   

r   N)r   r   r   r   r   r   <module>   s   