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

Extend rbac logs #365

Merged
merged 7 commits into from
Feb 24, 2023
Merged

Extend rbac logs #365

merged 7 commits into from
Feb 24, 2023

Conversation

KSmigielski
Copy link
Contributor

No description provided.

matb4r
matb4r previously approved these changes Feb 20, 2023
@matb4r matb4r temporarily deployed to ci February 21, 2023 07:44 — with GitHub Actions Inactive
Comment on lines +95 to +106
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 ''
Copy link
Collaborator

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created issue #368

Copy link
Collaborator

@mzawirski mzawirski left a 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)

@matb4r
Copy link
Contributor

matb4r commented Feb 24, 2023

please create a story for "missing" values in the log (see comment)

#368

@matb4r matb4r merged commit 2256274 into master Feb 24, 2023
@matb4r matb4r deleted the extend_rbac_logs branch February 24, 2023 09:19
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

Successfully merging this pull request may close these issues.

4 participants