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 ability to override default template authorizers.xml #76

Merged
merged 5 commits into from
Apr 20, 2022

Conversation

mh013370
Copy link
Member

@mh013370 mh013370 commented Mar 25, 2022

Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
Related tickets Orange-OpenSource/nifikop#170, Orange-OpenSource/nifikop#169
License Apache 2.0

What's in this PR?

This is an attempt at adding support for overriding the default authorizer configuration.

Adds new optional ReadOnlyConfig.AuthorizerConfig with two properties:

  • ReplaceTemplateConfigMap
  • ReplaceTemplateSecretConfig

These are ConfigMap or Secret refs to override the default authorizers.xml template. The docs clarify this, but the order of precedence follows similar conventions for other configurations, such as the logback configuration which this was based on:

Secret > ConfigMap > default

The purpose of this PR is to configure a custom authorizer, userGroupProvider, and accessPolicyProvider.

Why?

It's not possible to configure an authorizer other than managed-authorizer or userGroupProvider/accessPolicyProvider other than the file-based ones.

Checklist

  • Implementation tested
  • Error handling code meets the guideline
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)
  • Append changelog with changes

To Do

  • Get consensus on approach before merge

@erdrix
Copy link
Contributor

erdrix commented Mar 25, 2022

This sounds like a good idea, but maybe you could add a concrete use case example in the documentation (in the tasks section) ?

@erdrix erdrix self-assigned this Mar 25, 2022
@erdrix erdrix added enhancement New feature or request community labels Mar 25, 2022
@mh013370
Copy link
Member Author

This sounds like a good idea, but maybe you could add a concrete use case example in the documentation (in the tasks section) ?

Definitely!

@mh013370
Copy link
Member Author

@erdrix Let me know if the doc explaining this feature is sufficient.

@erdrix erdrix merged commit d784c64 into konpyutaika:master Apr 20, 2022
erdrix added a commit that referenced this pull request Aug 3, 2022
add ability to override default template authorizers.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants