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 pki-server ca-crl-* commands #4548

Merged
merged 2 commits into from
Aug 21, 2023
Merged

Add pki-server ca-crl-* commands #4548

merged 2 commits into from
Aug 21, 2023

Conversation

edewata
Copy link
Contributor

@edewata edewata commented Aug 21, 2023

The pki-server ca-crl-show command has been added to make it easier to inspect CRL configuration.

The pki-server ca-crl-ip-find/show commands have been added to make it easier to inspect CRL issuing point configuration.

https://github.com/dogtagpki/pki/wiki/PKI-Server-CA-CRL-CLI

Copy link
Contributor

@ckelleyRH ckelleyRH left a comment

Choose a reason for hiding this comment

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

One minor suggestion but not necessary to change looks good as-is.

Comment on lines 927 to 948
print(' Allow Extensions: %s' % config.get('allowExtensions'))
print(' Always Update: %s' % config.get('alwaysUpdate'))
print(' Auto Update Interval: %s' % config.get('autoUpdateInterval'))
print(' CA Certs Only: %s' % config.get('caCertsOnly'))
print(' Cache Update Interval: %s' % config.get('cacheUpdateInterval'))
print(' Unexpected Exception Wait Time: %s' % config.get('unexpectedExceptionWaitTime'))
print(' Unexpected Exception Loop Max: %s' % config.get('unexpectedExceptionLoopMax'))
print(' Daily Updates: %s' % config.get('dailyUpdates'))
print(' Enable CRL Cache: %s' % config.get('enableCRLCache'))
print(' Enable CRL Updates: %s' % config.get('enableCRLUpdates'))
print(' Enable Cache Testing: %s' % config.get('enableCacheTesting'))
print(' Enable Cache Recovery: %s' % config.get('enableCacheRecovery'))
print(' Enable Daily Updates: %s' % config.get('enableDailyUpdates'))
print(' Enable Update Interval: %s' % config.get('enableUpdateInterval'))
print(' Extended Next Update: %s' % config.get('extendedNextUpdate'))
print(' Include Expired Certs: %s' % config.get('includeExpiredCerts'))
print(' Min Update Interval: %s' % config.get('minUpdateInterval'))
print(' Next Update Grace Period: %s' % config.get('nextUpdateGracePeriod'))
print(' Publish On Start: %s' % config.get('publishOnStart'))
print(' Save Memory: %s' % config.get('saveMemory'))
print(' Signing Algorithm: %s' % config.get('signingAlgorithm'))
print(' Update Schema: %s' % config.get('updateSchema'))
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be tidied up a bit with a multi-line f-string, but this is minor

        print(f"""  Allow Extensions: {config.get('allowExtensions')}
                    Always Update: {config.get('alwaysUpdate')}
        ...
        """)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will that preserve the 2-space indentation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like I'll need to use textwrap.dedent() and indent(). Let me try something..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, patch updated. It does look cleaner. 👍

The pki-server ca-crl-show command has been added to make it
easier to inspect CRL configuration.
The pki-server ca-crl-ip-find/show commands have been added to
make it easier to inspect CRL issuing point configuration.
@sonarcloud
Copy link

sonarcloud bot commented Aug 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@edewata
Copy link
Contributor Author

edewata commented Aug 21, 2023

@ckelleyRH Thanks!

@edewata edewata merged commit 09ebf93 into dogtagpki:master Aug 21, 2023
150 checks passed
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.

2 participants