dlamarmorgan
9a37399346
satellite/metainfo: remove Gateway-ST library name from UserAgent string
...
When trimming the UserAgent string, Library names such as Gateway-ST
should be removed.
Change-Id: I3d71fa8514364bf1d4d79b0dc00c85aed337ab45
2021-12-13 18:07:55 +00:00
dlamarmorgan
3b51eea312
satellite/metainfo: store empty useragent in bucket attribution instead of throwing error
...
Previously, only valid partner IDs could be used for bucket level value attribution. Now that any useragent byte slice can be used, we should allow for empty useragent strings to be stored rather than throwing an error or leaving the bucket with no attribution.
Change-Id: I7043f835588dab1c401a27e31afd74b6b5a3e44b
2021-12-07 18:06:27 +00:00
dlamarmorgan
1dd537953e
satellite/metainfo: strip the uplink version from the UserAgent and bound its size
...
The UserAgent should be stored as is, with the exception of removing the trailing version from any libuplink user agents
Change-Id: If17ef2fc4b59480a3477300f2585a07d64cc2bf4
2021-11-04 10:09:54 -07:00
dlamarmorgan
4bbf667ad1
satellite/{satellitedb,attribution,console}: value attribution changes that add userAgent field to buckets table and all tables that have partner_id
...
Change-Id: I36a13bb651b86bfc14fe5a0a2258f719e6cd2b48
2021-10-18 13:56:19 +00:00
Michał Niewrzał
495e530933
satellite/metainfo: drop metainfo.Service
...
Drop a service that in fact don't make sense and
its just a wrapper for direct DB methods.
Change-Id: I1cb76f3ecc2d8765964d919c88541179957645c1
2021-09-09 17:30:10 +02:00
Michał Niewrzał
dc2bec9f89
satellite/metainfo: collect uplink versions with monkit
...
This change adds metrics for uplink version and method which was used by this version.
Change-Id: I05fc425a024805cfcd6d8add810a2a0749405f4f
2021-02-10 17:47:13 +01:00
Michal Niewrzal
88dcc93f3c
satellite/metainfo: use user PartnerID for bucket attribution
...
Change-Id: I20f1bd432333f9b37ca8fb457c349eff94ffb392
2020-08-06 13:14:07 +00:00
Egon Elbre
6cc7fd5f31
satellite/metainfo: remove old endpoints
...
Change-Id: Ic85c27caeea08879714e8303b285b6136f9a7fd1
2020-06-16 16:12:14 +03:00
Egon Elbre
6673125c03
satellite/metainfo: remove code for handling partner uuid
...
Change-Id: I2e0fdc6a23288b3d8e55548f1d97598e48588e4c
2020-06-16 11:31:41 +00:00
Egon Elbre
19d431ff38
satellite/metainfo: disable old endpoints
...
First step in removing endpoints that were used by pre 1.0 clients.
Change-Id: Id861c73ffac97139aa9540f4973ea849e572f906
2020-06-16 11:22:44 +00:00
Egon Elbre
d6c90b7ab5
pkg/macaroon: remove aliased package
...
Change-Id: I8b06e9a794d00752948f190623006e1afffdb031
2020-05-29 13:34:20 +00:00
Egon Elbre
7e0e74c65c
satellite/metainfo: attribution based on useragent
...
Automatically attach attribution information to bucket during
BeginObject or CreateBucket when the UserAgent is set.
Change-Id: I405cb26c5a2f7394b30e3f2cf5d2214c8781eb8b
2020-04-17 10:47:14 +03:00
Egon Elbre
c97131ae78
satellite/metainfo: organize attribution methods
...
Change-Id: I4f35599c3f923861b5b05b128bf904480679f5f9
2020-04-14 11:27:43 +03:00
Egon Elbre
1024bf9ce1
all: simplify uuid usage
...
Instead of uuid.Parse, use uuid.FromString.
This removes a bunch of pointer management logic.
Change-Id: Id25bd174eb43c71d00b450158a198abafd8958f2
2020-04-02 13:45:19 +00:00
Egon Elbre
8f73fb7a32
all: simplify uuid usage
...
uuid.UUID implements driver.Value so it can be directly used as a
scannable result.
Replace uses of dbutil.BytesToUUID with uuid.FromBytes.
Change-Id: I51a670185ceb3cc2199d5aa2b76bc3fc191ca8fe
2020-04-02 05:48:58 +00:00
Egon Elbre
0a69da4ff1
all: switch to storj.io/common/uuid
...
Change-Id: I178a0a8dac691e57bce317b91411292fb3c40c9f
2020-03-31 19:16:41 +03:00
Egon Elbre
1d79228ed0
satellite/metainfo: support uplink useragent
...
Adds support for parsing user agent and specifying uplink version and
it's library dependencies.
Change-Id: Ibaddde4deb93e153ac05c91b676c5b5f1ae1aa37
2020-03-31 15:11:31 +00:00