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

Adding events doesn't work with security plugin enabled #244

Closed
joshuali925 opened this issue Jul 28, 2021 · 1 comment
Closed

Adding events doesn't work with security plugin enabled #244

joshuali925 opened this issue Jul 28, 2021 · 1 comment
Assignees
Labels
bug Something isn't working v1.2 OpenSearch 1.2

Comments

@joshuali925
Copy link
Member

Describe the bug
After enabling security plugin, all events goes to global tenant regardless of the current tenant

To Reproduce
Steps to reproduce the behavior:
go to admin private tenant
create a channel first
create an event using send test message

GET /_plugins/_notifications/feature/test/<channel-id>
response:
{
  "event_id" : "<event-id>"
}

query the event id, see error

GET /_plugins/_notifications/events/pOrN7noBi0kFiZoXkBqz
response:
{
  "error" : {
    "root_cause" : [
      {
        "type" : "status_exception",
        "reason" : "Permission denied for NotificationEvent pOrN7noBi0kFiZoXkBqz"
      }
    ],
    "type" : "status_exception",
    "reason" : "Permission denied for NotificationEvent pOrN7noBi0kFiZoXkBqz"
  },
  "status" : 403
}

and switch to admin global tenant, the same event API works.
Configs (channels, senders, email groups) are working as expected.


Expected behavior
A clear and concise description of what you expected to happen.

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@joshuali925 joshuali925 added bug Something isn't working Beta untriaged labels Jul 28, 2021
@joshuali925 joshuali925 changed the title Adding events doesn't work with with security plugin enabled Adding events doesn't work with security plugin enabled Jul 28, 2021
@joshuali925 joshuali925 self-assigned this Aug 6, 2021
@zhongnansu zhongnansu added the v1.2 OpenSearch 1.2 label Sep 2, 2021
@joshuali925
Copy link
Member Author

closing since we support backend roles instead of tenants now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v1.2 OpenSearch 1.2
Projects
None yet
Development

No branches or pull requests

2 participants