Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
6ae171b3
Unverified
Commit
6ae171b3
authored
3 years ago
by
Keshav Prasad
Committed by
GitHub
3 years ago
Browse files
Options
Download
Patches
Plain Diff
fix: base64 issues in commenting (#3150)
parent
ceab9a19
release-4.5.0
release-4.5.0_RC6
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kubernetes/opa/common/common.rego
+1
-2
kubernetes/opa/common/common.rego
with
1 addition
and
2 deletions
+1
-2
kubernetes/opa/common/common.rego
+
1
−
2
View file @
6ae171b3
...
...
@@ -51,8 +51,7 @@ token_roles = user_token.payload.roles {
userid
=
token_userid
{
not
http_request
.
headers
[
"x-authenticated-for"
]
}
else
=
token_userid
{
# This is a temporary fix as the mobile app is sending empty headers as x-authenticated-for: ""
http_request
.
headers
[
"x-authenticated-for"
]
==
""
http_request
.
headers
[
"x-authenticated-for"
]
==
""
# This is a temporary fix as the mobile app is sending empty headers as x-authenticated-for: ""
}
else
=
for_token_userid
{
http_request
.
headers
[
"x-authenticated-for"
]
http_request
.
headers
[
"x-authenticated-for"
]
!
=
""
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets