-
Notifications
You must be signed in to change notification settings - Fork 99
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
Feat/pci private registry create restriction tapc 584 #14492
base: develop
Are you sure you want to change the base?
Feat/pci private registry create restriction tapc 584 #14492
Conversation
...es/manager/apps/pci-private-registry/public/translations/ip-restrictions/Messages_fr_FR.json
Outdated
Show resolved
Hide resolved
...es/manager/apps/pci-private-registry/public/translations/ip-restrictions/Messages_fr_FR.json
Outdated
Show resolved
Hide resolved
...es/manager/apps/pci-private-registry/public/translations/ip-restrictions/Messages_fr_FR.json
Outdated
Show resolved
Hide resolved
...es/manager/apps/pci-private-registry/public/translations/ip-restrictions/Messages_fr_FR.json
Outdated
Show resolved
Hide resolved
...es/manager/apps/pci-private-registry/public/translations/ip-restrictions/Messages_fr_FR.json
Outdated
Show resolved
Hide resolved
...es/manager/apps/pci-private-registry/public/translations/ip-restrictions/Messages_fr_FR.json
Outdated
Show resolved
Hide resolved
...es/manager/apps/pci-private-registry/public/translations/ip-restrictions/Messages_fr_FR.json
Outdated
Show resolved
Hide resolved
f08bf4f
to
8bda40a
Compare
015be75
to
796da9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a huge work 👏
Kinda hard to analyze the whole code but I wrote down some remarks 😌
packages/manager/apps/pci-private-registry/src/api/data/ip-restrictions.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/api/data/ip-restrictions.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/pages/CIDR/useDatagridColumn.tsx
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/pages/CIDR/useDatagridColumn.tsx
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/components/CIDR/ButtonsCIDR.component.tsx
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/components/CIDR/ButtonsCIDR.component.tsx
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/components/CIDR/DeleteModal.component.tsx
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/helpers/index.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/api/data/ip-restrictions.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/api/data/ip-restrictions.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/api/data/ip-restrictions.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/api/data/ip-restrictions.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/components/CIDR/CIDR.component.tsx
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/helpers/index.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/helpers/index.ts
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/pages/CIDR/ManageCIDR.page.tsx
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/pages/CIDR/useDatagridColumn.tsx
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/pages/CIDR/useDatagridColumn.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: CDS Translator Agent <[email protected]>
Signed-off-by: CDS Translator Agent <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
Signed-off-by: CDS Translator Agent <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
Signed-off-by: CDS Translator Agent <[email protected]>
Signed-off-by: CDS Translator Agent <[email protected]>
Signed-off-by: CDS Translator Agent <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
187efdd
to
70e051e
Compare
return result; | ||
} | ||
|
||
export function capitalizeAndJoin(array: string[]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no test associated?
packages/manager/apps/pci-private-registry/src/pages/CIDR/useDatagridColumn.tsx
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-private-registry/src/components/CIDR/DeleteModal.component.tsx
Show resolved
Hide resolved
ref: TAPC-584 Signed-off-by: Pierre-Philippe <[email protected]>
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work
import AllCheckboxComponent from '@/components/CIDR/AllCheckbox.component'; | ||
import useFilter from './useFilters'; | ||
|
||
function showCheckboxes(draft: boolean, dataLength: number): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function showCheckboxes(draft: boolean, dataLength: number): boolean { | |
function shouldShowCheckboxes(draft: boolean, dataLength: number): boolean { |
develop
Description
This PR implements the "Manage Authorized IPs" feature for Manager Private Registry users. It allows users to define IP restrictions for two components: the management interface (Harbor UI) and the registry service. These restrictions cannot be set during registry creation but can be added or updated afterward through the UI.
The feature integrates with existing API endpoints to list, add, update, and remove IP restrictions. The UI now includes a "Manage Authorized IPs" button that opens a page displaying the current IP restrictions. Users can add or remove individual IPs, clear all restrictions, or use filters to manage them more effectively.
Validation is performed using the CIDR format, with a default mask of /32 if not specified. Optional descriptions for each restriction can also be added or modified. Additionally, the "Guide" button links to documentation for IP restrictions. When no restrictions are present, an onboarding page is displayed to guide users.
This update enhances security management by providing a straightforward interface for controlling registry access.
Related