-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Registry configuration - security #6159
Conversation
@swift-ci please smoke test |
@swift-ci please smoke test |
@swift-ci please smoke test Windows |
self.certificateRevocation = nil | ||
} | ||
|
||
mutating func merge(_ other: ValidationChecks) { |
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 more of an override than a merge? at least at the value level
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.
sure
case packageOverrides | ||
} | ||
|
||
public init(from decoder: Decoder) throws { |
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.
curios why we need the manual decoding?
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.
It thinks packageOverrides
is an array instead of a dictionary IIRC.
{ | ||
"registries": {}, | ||
"security": { | ||
"packageOverrides": { |
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.
do we need a test that checks the various levels of overrides / merge behavior?
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 what this test and others (e.g., testGetSigning_scopeOverride
) do.
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.
right. I was thinking a test that checks package override of scope, scope override of registry, and registry override of global all in the same config - ie stacked up on top of each other. maybe already covered and I missed it
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.
amended 5d4b3f0
Implement new `security` configuration per registry publish proposal
8409a1a
to
5d4b3f0
Compare
@swift-ci please smoke test |
@swift-ci please smoke test Windows |
@swift-ci please smoke test |
looks great 👍 |
Implement new
security
configuration per registry publish proposal