This is an automated email from the ASF dual-hosted git repository.
yasithdev pushed a change to branch temp-account-access
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git
discard 4a352afe0 Add temp account access
add be98a6355 Support service and delegated apps with the existing
privileges
add fc0d3feaa Use the admin's user ID when revoking a certificate
add d08de3cc5 Record app key in audit events
add bcf40f882 Show app mode and privileges, and who generated or revoked a
certificate
add f4962638c Move app grants into the apps migration
add 5de9ee64e Keep apps off the agreement and onboarding writes
add fe10106f6 Refuse to start when the apps client is the portal client
add 85bd093b6 Show delegated apps only shared privileges in profiles
add fcd59b14d Updated the docs
add 477fcc56e Updated test cases
add 1cb66fb54 Let certificate readers see who revoked a certificate
add 0ac3a17c0 Stop apps using privileges no longer allowed for apps
add 4f207e9e6 Clarify app privilege restrictions
add 7b649a6d4 Limit app privilege length to 64 characters
add 34783a2a7 Admins can delete disabled apps
add e6561444e Support app delete from Apps page
add f5751f38a Add temp account access
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (4a352afe0)
\
N -- N -- N refs/heads/temp-account-access (f5751f38a)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
No new revisions were added by this update.
Summary of changes:
.env.example | 2 +
CONFIG.md | 82 ++++----
api/core.openapi.yaml | 180 ++++++++++------
cmd/server/main.go | 8 +-
config/custos.yaml | 1 +
connectors/Signer/internal/app_handlers.go | 132 ------------
connectors/Signer/internal/app_handlers_test.go | 141 -------------
connectors/Signer/internal/handlers.go | 57 +++---
connectors/Signer/internal/handlers_test.go | 80 ++++----
connectors/Signer/pkg/signer/loader.go | 6 -
connectors/TempAccount/internal/handlers.go | 6 +-
.../{Signer => TempAccount}/internal/privileges.go | 7 +-
connectors/TempAccount/pkg/tempaccount/loader.go | 2 -
docs/architecture.md | 45 +++-
docs/privileges.md | 36 +++-
internal/config/config.go | 7 +
internal/config/config_test.go | 21 ++
internal/db/migrations/000009_apps.down.sql | 3 +-
internal/db/migrations/000009_apps.up.sql | 33 ++-
internal/db/migrations/000010_app_grants.down.sql | 18 --
internal/db/migrations/000010_app_grants.up.sql | 27 ---
...> 000010_drop_temp_account_privileges.down.sql} | 0
... => 000010_drop_temp_account_privileges.up.sql} | 0
internal/server/app.go | 94 +++++----
internal/server/privilege.go | 7 +-
internal/server/privilege_integration_test.go | 24 +++
internal/server/server.go | 9 +-
internal/store/app_store.go | 42 ++--
internal/store/store.go | 2 +
pkg/identity/app_middleware_test.go | 228 ++++++++++++++++++---
pkg/identity/identity.go | 21 +-
pkg/identity/middleware.go | 138 ++++++++++---
pkg/models/app.go | 95 ++-------
pkg/models/privilege.go | 49 ++++-
.../page.tsx => pkg/models/privilege_test.go | 17 +-
pkg/service/app.go | 94 +++++++--
pkg/service/app_integration_test.go | 213 ++++++++++++++-----
pkg/service/identity_resolver.go | 4 +-
pkg/service/interface.go | 7 +-
pkg/service/mock.go | 182 ++++++++++++++--
pkg/service/service.go | 5 +
web/src/features/core/apps/api.ts | 47 +++--
web/src/features/core/apps/components/AppsView.tsx | 58 ++++--
.../core/apps/components/CreateAppDialog.tsx | 117 +++++++----
.../core/apps/components/DeleteAppDialog.tsx | 52 +++++
.../core/apps/components/EditAppDialog.tsx | 2 +-
web/src/features/core/apps/components/MyApps.tsx | 9 +-
web/src/features/core/apps/queries.ts | 19 +-
.../signer/__tests__/CertificateDetail.test.tsx | 9 +-
web/src/features/core/signer/api.ts | 7 +
.../core/signer/components/CertificateDetail.tsx | 15 +-
.../core/signer/components/MyCertificateDetail.tsx | 7 +-
web/src/features/core/signer/queries.ts | 12 ++
web/src/features/core/signer/status.ts | 25 ++-
web/src/mocks/handlers/apps.ts | 53 +++--
web/src/mocks/handlers/signer.ts | 2 +-
web/tests/fixtures/signer-api.ts | 2 +-
57 files changed, 1638 insertions(+), 923 deletions(-)
delete mode 100644 connectors/Signer/internal/app_handlers.go
delete mode 100644 connectors/Signer/internal/app_handlers_test.go
copy connectors/{Signer => TempAccount}/internal/privileges.go (81%)
delete mode 100644 internal/db/migrations/000010_app_grants.down.sql
delete mode 100644 internal/db/migrations/000010_app_grants.up.sql
rename internal/db/migrations/{000011_drop_temp_account_privileges.down.sql =>
000010_drop_temp_account_privileges.down.sql} (100%)
rename internal/db/migrations/{000011_drop_temp_account_privileges.up.sql =>
000010_drop_temp_account_privileges.up.sql} (100%)
copy web/src/app/(portal)/admin/agreements/page.tsx =>
pkg/models/privilege_test.go (70%)
create mode 100644 web/src/features/core/apps/components/DeleteAppDialog.tsx