-
Notifications
You must be signed in to change notification settings - Fork 44
add turnpike content guard (HMS-4783) #2726
add turnpike content guard (HMS-4783) #2726
Conversation
|
I set this to draft while additional tests run, but wanted to get this up here for perusal while I'm out through Friday. |
6726259 to
0bab10b
Compare
lzap
left a comment
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.
This is not complete, looks great, tho I suggest to avoid new feature flags if we can.
4ceea24 to
d5ca88c
Compare
|
I am almost done adding MTLS, this is the last PR: osbuild/osbuild-composer#4412 Once this is merged and promoted to stage, IB should be automatically able to reach out to any pulp repository on stage or prod as long as the DN is set accordingly in edge. |
ea5c462 to
1ebba29
Compare
|
/retest |
1 similar comment
|
/retest |
c80696c to
afa4250
Compare
22f1245 to
748b66c
Compare
|
/retest |
748b66c to
fa8bb71
Compare
|
This pull request looks stale. Feel free to reopen it if you think it's a mistake. |
|
My bad, is taking too long. I am almost there, the patch is in, we need to kill workers... |
|
The update edge builds are finally fixed on stage. Let me know when this is ready for re-review. |
|
/retest |
a7baf57 to
4749d76
Compare
4749d76 to
f39869d
Compare
Signed-off-by: Jonathan Holloway <jholloway@redhat.com>
f39869d to
21b9b8e
Compare
| // that the composite guard is not created or the guards are not the same as the ones provided, it will delete it | ||
| // and recreate it. This method is idempotent and will not create the guards if they already exist. | ||
| func (ps *PulpService) ContentGuardEnsure(ctx context.Context, orgID string) (*CompositeContentGuardResponse, error) { | ||
| var contentGuardHrefs []string |
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.
This is fine, two appends will create a slice of capacity two, one extra copy operation is not big deal: https://go.dev/play/p/SAxjQTDwNCT
Interesting fact: Go increases capacity in power of twos up until 256 and then it is just 1.25x: https://github.com/golang/go/blob/master/src/runtime/slice.go#L289
Description
Add turnpike content guard for ostree and associated feature flag
Add mTLS URL swap to support turnpike switch
Switch RBAC to configurable option
FIXES: HMS-4783
Type of change
What is it?