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

Better logging for IAM permission error #12

Open
francisf2 opened this issue Mar 8, 2024 · 2 comments
Open

Better logging for IAM permission error #12

francisf2 opened this issue Mar 8, 2024 · 2 comments

Comments

@francisf2
Copy link
Contributor

Write more detailed logs when an IAM permission error occurs

@francisf2
Copy link
Contributor Author

Sample current info log:
March 05, 2024 at 09:50 (UTC-5:00) { "ClientAddr": "<...>", "ClientHost": "<...>", "ClientPort": "45148", "ClientUsername": "-", "DownstreamContentSize": 1548, "DownstreamStatus": 500, "Duration": 44210990, "OriginContentSize": 1548, "OriginDuration": 310524, "OriginStatus": 500, "Overhead": 43900466, "RequestAddr": "<...>", "RequestContentSize": 12, "RequestCount": 253742, "RequestHost": "<...>", "RequestMethod": "PUT", "RequestPath": "<...>", "RequestPort": "-", "RequestProtocol": "HTTP/1.1", "RequestScheme": "https", "RetryAttempts": 0, "RouterName": "<...>", "ServiceAddr": "<...>", "ServiceName": "<...>", "ServiceURL": { "Scheme": "http", "Opaque": "", "User": null, "Host": "<...>", "Path": "", "RawPath": "", "OmitHost": false, "ForceQuery": false, "RawQuery": "", "Fragment": "", "RawFragment": "" }, "StartLocal": "2024-03-05T14:50:35.564775947Z", "StartUTC": "2024-03-05T14:50:35.564775947Z", "TLSCipher": "TLS_AES_128_GCM_SHA256", "TLSVersion": "1.3", "entryPointName": "web-secure", "level": "info", "msg": "", "time": "2024-03-05T14:50:35Z" } <...> traefik

@francisf2
Copy link
Contributor Author

Sample current debug log:
{"level":"debug","module":"github.com/bluecatengineering/traefik-aws-plugin","msg":"2024-03-05T16:14:39Z {\"level\":\"error\",\"msg\":\"PUT\\n<path>\\ncontent-type:application/x-www-form-urlencoded\\ndate:Tue, 05 Mar 2024 16:14:39 UTC\\nhost:<buckent>.s3.amazonaws.com\\nx-amz-content-sha256:<...>\\nx-amz-date:<...>\\nx-amz-security-token:<...>\\ncontent-type;date;host;x-amz-content-sha256;x-amz-date;x-amz-security-token\\n<...>\",\"time\":\"2024-03-05T16:14:39Z\"}","plugin":"plugin-aws","time":"2024-03-05T16:14:39Z"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant