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

fix: access the list interface without logging in #81

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

LIlGG
Copy link
Member

@LIlGG LIlGG commented Feb 20, 2024

What type of PR is this?

/kind bug

What this PR does / why we need it:

根据 自定义 API 的规则,当 group 为 api.<group> 时,此接口默认为为主题端公开的接口。而 moment 在初始定义时,使用了 api.plugin.halo.run 作为 group,因此导致其能被公开访问。

本 pr 将 moment 自定义的接口组由 api.plugin.halo.run 改为 console.api.moment.halo.run,用于解决用户未登录便可访问瞬间列表的问题。

How to test it?

未登录状态下,直接访问接口 /apis/console.api.moment.halo.run/v1alpha1/moments。 查看是否提示无权限。

Which issue(s) this PR fixes:

Fixes #71

Does this PR introduce a user-facing change?

解决未认证的用户可以获取瞬间列表的问题

@f2c-ci-robot f2c-ci-robot bot added kind/bug Categorizes issue or PR as related to a bug. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Feb 20, 2024
@JohnNiang JohnNiang added the kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API label Feb 21, 2024
@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 21, 2024
Copy link
Member

@ruibaby ruibaby left a comment

Choose a reason for hiding this comment

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

/lgtm

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Feb 21, 2024
Copy link

f2c-ci-robot bot commented Feb 21, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: guqing, ruibaby

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot merged commit c8f66d0 into halo-sigs:main Feb 21, 2024
1 check was pending
@LIlGG LIlGG deleted the fix/access-control-invalid branch February 21, 2024 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Console 端瞬间列表未认证却可以访问
4 participants