-
Notifications
You must be signed in to change notification settings - Fork 763
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
feat: add support for CONNECT operations #3459
Conversation
Signed-off-by: Thomas Chaplin <thomaschaplin@outlook.com>
Signed-off-by: Thomas Chaplin <thomaschaplin@outlook.com>
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Thomas Chaplin <thomaschaplin@outlook.com>
@@ -61,6 +61,9 @@ webhooks: | |||
{{- if .Values.enableDeleteOperations }} | |||
- DELETE | |||
{{- end }} | |||
{{- if .Values.enableConnectOperations }} |
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.
@thomaschaplin can you revert changes in /charts
? /manifest_staging/charts
is automatically promoted to /charts
when we cut a release
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.
@sozercan I've done that now, thanks for confirming - I wasn't sure as the docs wasn't clear to me if this was auto-generated or not.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3459 +/- ##
==========================================
- Coverage 54.49% 47.97% -6.53%
==========================================
Files 134 219 +85
Lines 12329 14844 +2515
==========================================
+ Hits 6719 7121 +402
- Misses 5116 6914 +1798
- Partials 494 809 +315
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Thomas Chaplin <thomaschaplin@outlook.com>
Signed-off-by: Thomas Chaplin <thomaschaplin@outlook.com>
Signed-off-by: Thomas Chaplin <thomaschaplin@outlook.com>
Co-authored-by: Anlan Du <adu47249@gmail.com> Signed-off-by: Thomas Chaplin <thomaschaplin@outlook.com>
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.
LGTM
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.
LGTM
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.
LGTM
Signed-off-by: Thomas Chaplin <thomaschaplin@outlook.com> Co-authored-by: Anlan Du <adu47249@gmail.com> Co-authored-by: Rita Zhang <rita.z.zhang@gmail.com> Co-authored-by: Jaydipkumar Arvindbhai Gabani <gabanijaydip@gmail.com>
What this PR does / why we need it:
Adds support for
CONNECT
operations as described in issue - #3458Which issue(s) this PR fixes (optional, using
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when the PR gets merged):Fixes #3458
Special notes for your reviewer:
This is the rego policy I want to use:
The use-case is to only allow certain exec commands to be run via
kubectl
unless you're using a certain role (to allow for break-glass scenario)So for example running
kubectl exec <POD_NAME> -- ls
will work but runningkubectl exec <POD_NAME> -- echo "Hello World"
will result in the following error:I have confirmed that this works with my suggested change (adding CONNECT operation)