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

Add a no file fluent API for application configuration. #1422

Merged
merged 24 commits into from
Jun 15, 2021
Merged

Conversation

mregen
Copy link
Contributor

@mregen mregen commented Jun 11, 2021

No description provided.

@lgtm-com
Copy link

lgtm-com bot commented Jun 11, 2021

This pull request introduces 2 alerts when merging 6b6a5c8 into 24f90c4 - view on LGTM.com

new alerts:

  • 1 for Container contents are never accessed
  • 1 for Poor error handling: empty catch block

@lgtm-com
Copy link

lgtm-com bot commented Jun 11, 2021

This pull request introduces 2 alerts when merging 4839b72 into 24f90c4 - view on LGTM.com

new alerts:

  • 1 for Container contents are never accessed
  • 1 for Poor error handling: empty catch block

@mregen mregen marked this pull request as draft June 12, 2021 07:17
@mregen
Copy link
Contributor Author

mregen commented Jun 12, 2021

switch GDS tests turned out extensions are yet missing

@lgtm-com
Copy link

lgtm-com bot commented Jun 12, 2021

This pull request introduces 2 alerts when merging bf6b715 into 24f90c4 - view on LGTM.com

new alerts:

  • 1 for Container contents are never accessed
  • 1 for Poor error handling: empty catch block

@lgtm-com
Copy link

lgtm-com bot commented Jun 12, 2021

This pull request introduces 2 alerts when merging 991b96f into 24f90c4 - view on LGTM.com

new alerts:

  • 1 for Container contents are never accessed
  • 1 for Poor error handling: empty catch block

@lgtm-com
Copy link

lgtm-com bot commented Jun 12, 2021

This pull request introduces 2 alerts when merging 2ba7279 into 24f90c4 - view on LGTM.com

new alerts:

  • 1 for Container contents are never accessed
  • 1 for Poor error handling: empty catch block

@lgtm-com
Copy link

lgtm-com bot commented Jun 13, 2021

This pull request introduces 2 alerts when merging 42615e2 into 24f90c4 - view on LGTM.com

new alerts:

  • 1 for Container contents are never accessed
  • 1 for Poor error handling: empty catch block

@mregen mregen marked this pull request as ready for review June 14, 2021 13:57
var uri = SecurityPolicies.GetUri(name);
if (uri != null)
{
deprecatedPolicyList.Add(uri);
Copy link
Contributor

Choose a reason for hiding this comment

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

deprecatedPolicyList is not added to main list.
AddSecurityPolicies() is called internally only with deprecated = false

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, intentionally added a AddPolicy instead of allowing to add all deprecated policies. However the function might be useful for testing, so I keep it around for a bit,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated API design --> I removed addDeprecated in favor of AddPolicy, to avoid to make it too easy to have unsecure policy settings.

ApplicationCertificate = new CertificateIdentifier()
{
StoreType = appStoreType,
StorePath = DefaultCertificateStorePath(TrustlistType.Application, pkiRoot),
Copy link
Contributor

Choose a reason for hiding this comment

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

should be appRoot here instead of pkiRoot, right?
StorePath = DefaultCertificateStorePath(TrustlistType.Application, appRoot),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed, good catch! Also if appRoot == null, the pkiRoot should be used

@lgtm-com
Copy link

lgtm-com bot commented Jun 15, 2021

This pull request introduces 2 alerts when merging a6efd3d into 24f90c4 - view on LGTM.com

new alerts:

  • 1 for Container contents are never accessed
  • 1 for Poor error handling: empty catch block

@mregen mregen merged commit 96ecb4d into master Jun 15, 2021
@mregen mregen deleted the nofileconfig branch June 15, 2021 17:14
@mregen mregen added this to the 1.4.367 milestone Aug 20, 2021
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.

None yet

2 participants