Commit 87ffdf6
committed
feat: Add pilot logging (+2 squashed commits)
Squashed commits:
[bf5618f] feat: Add pilot logging
Squashed commits:
[490e293] feat: Logging is working, and we can search through the data
[09ddffa] fix: Lots of fixes to make it work
[b4e3d12] [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
[f121d21] fix: remove unused code
[6f1cb7f] feat: move bulk_insert to logging.py
[ea6ecdd] feat: refactor pilot logging to include a business logic layer, rebase and fix _get_columns
[15338d5] feat: refactor pilot logging to include a business logic layer
[8fe6d31] fix: rename _get_columns to get_columns
[9ee07db] fix: remove unused PilotNotFoundError exception
[cf61acb] feat: Restructured pilot logger + test send_message and get_logs
[9800d11] feat: enable remote pilot logging system
[720f302] fix: Add security by preventing a user to access a pilot endpoint and vice-versa
[bad03be] fix: Changed the pilot token from a User to a dedicated
[f71da78] fix: Split in two pilot route
[3feaa56] fix: Add security by preventing to see other pilots
[306941f] fix: Fix, bug not caught by CI (sqlite not raising anything)
[cc8de96] fix: Change secrets from VARCHAR to BINARY
[17ce4e3] feat: Change from SecretID to SecretUUID
[5760830] fix: Generating the client
[43cfccc] feat: Migrating pilot functionalities from DIRAC, and add DiracX pilot auth
Squashed commits:
[33cfe17] test: Changing from sleep to freezegun #537
[3e5d677] refactor: Refactorized the exceptions
[d84f6fe] doc: Documenting the database
[1c0db02] test: Better testing: Tested search engine
[cd1caf4] refactor: Refactoring from the auth router to the pilot router
[9cc99f1] feat: Adding indexes to the database
[de0b580] refactor: Moved the pilot_to_secret_mapping into the pilotagents table itself
[14396f6] refactoring: Lots of refactoring of the code
[56daac5] refactor: Moving db parts to the logic, and some fixes
[79a11cf] fix: Fixed dependency and client
[8c45582] test: Tested interval deletion for the db.
[dd07bca] feat: We can clear pilots that lived more than n days
[7e93153] feat: We can search for pilots
[9da8033] feat: DIRAC can associate a pilot with a job
[77a59b0] feat: We can modify pilot fields (statuses, benchmarks, ...)
[ca0e727] fix: Added pilot management
[521164f] fix: Fixed text
[8e6e881] [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
[adadb68] fix: Semantic
[15d9fe6] feat: We can add a number of use max for the secret in pilot registration
[4549203] fix: Fixed cli
[a9ece0a] feat: Adding a command to add a pilot to the CS, and some fixes
[42e4f0b] fix: Changed secret expiration from 600 to 3600s
[1dcb4b8] fix: Regenerated client
[02a5e31] feat: A user can create secrets, and associate them to a pilot
[8072227] feat: Ability to add only secrets, and lots of refactoring in the tests
[10205d6] feat: Autodeletion of secrets after full use or expiration.
[3f013df] feat: Restricting a secret for a certain VO
[c2181aa] fix: Chunky client
[d374ec6] feat: Changing the pilot login db, and moved from references to stamps
[aa67bda] fix: Regenerating client
[135235f] feat: Using pilot user, model for pilot creds, and documentation
[0e0a117] feat: Added last_time_used for a pilot secret, and a max value
[62977ee] fix: Few fixes with refactoring, and tests (+4 squashed commits)
Squashed commits:
[5169ee2] refactor: Moved login for pilots into token file
[12da5c0] fix: Fixed according the the new commits from main branch
[a8e06d8] fix: Fixed client
[93b83b4] fix: Fixed the tests and autorest
[a78c028] feat: A user can register pilots and get their credentials
[1e9f907] fix: Removing the pilot login cli
[3f7c632] feat: Adding duration to secrets
[8aff5d9] fix: Regenerating client, type ignore for the cli
Squashed commits:
[06a969b] fix: Type ignore for mypy...
[28e1ee1] fix: Generated code broke everything
[339ab4f] fix: Fixed cli and pilot endpoints
[31af99e] fix: Regenerated client
[a171d01] feat: Added pilot login to the cli
[54951a6] fix: Correcting client generation with the error patch
Squashed commits:
[65db1ae] fix: Regenerating clients with autorest
[5a4f370] feat: Better handling of refresh tokens for pilots
[6da7bb4] fix: Generating client with autorest
[2c4d2fb] feat: Adding pilot registrations
[a957480] feat: Adding pilot registrations, with secret management1 parent 8fd7d1c commit 87ffdf6
File tree
67 files changed
+12383
-298
lines changed- diracx-client/src/diracx/client/_generated
- aio
- operations
- models
- operations
- diracx-cli
- src/diracx/cli/internal
- tests
- diracx-core/src/diracx/core
- diracx-db
- src/diracx/db
- os
- sql
- job
- pilot_agents
- utils
- tests/pilot_agents
- diracx-logic/src/diracx/logic
- auth
- jobs
- pilots
- diracx-routers
- src/diracx/routers
- auth
- jobs
- pilot_management
- pilots
- utils
- tests/pilots
- diracx-testing/src/diracx/testing
- extensions/gubbins/gubbins-client/src/gubbins/client/_generated
- aio
- operations
- models
- operations
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
67 files changed
+12383
-298
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
89 | 101 | | |
90 | 102 | | |
91 | 103 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
0 commit comments