-
Notifications
You must be signed in to change notification settings - Fork 34
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
Extend rbac logs #365
Extend rbac logs #365
Conversation
local client_name = lua_metadata['request.info.client_name'] or '' | ||
local trusted_client = lua_metadata['request.info.trusted_client'] or false | ||
local path = lua_metadata['request.info.path'] or '' | ||
local protocol = handle:connection():ssl() == nil and 'http' or 'https' | ||
local method = lua_metadata['request.info.method'] or '' | ||
local xff_header = lua_metadata['request.info.xff_header'] or '' | ||
local source_ip = string.match(xff_header, '[^,]+$') or '' | ||
local request_id = lua_metadata['request.info.request_id'] or '' | ||
local status_code = handle:headers():get(':status') or '0' | ||
local allowed_client = lua_metadata['request.info.allowed_client'] or false | ||
local authority = lua_metadata['request.info.authority'] or '' | ||
local lua_destination_authority = lua_metadata['request.info.lua_destination_authority'] or '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about 'missing' or 'null' instead of empty strings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created issue #368
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please create a story for "missing" values in the log (see comment)
|
No description provided.