Obtain bearer token from accessbox with authmate #132

Closed
opened 2023-06-07 08:47:21 +00:00 by alexvanin · 0 comments
Owner

With TrueCloudLab/frostfs-node#390 we can use FrostFS CLI to access tree service with gateway key. To do that, bearer token is required.

Right now bearer token is not a part of obtain-secret output.

// https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/src/commit/acb6e8cbcae7e2b3c894c8a160088655f8b26642/authmate/authmate.go#L140
type obtainingResult struct {
	BearerToken     *bearer.Token `json:"-"`
	SecretAccessKey string        `json:"secret_access_key"`
}

I suggest to add token to the obtain-secret output or add obtain-token command to the authmate and reuse the code from obtain-secret.

With https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/390 we can use FrostFS CLI to access tree service with gateway key. To do that, bearer token is required. Right now bearer token is not a part of `obtain-secret` output. ```go // https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/src/commit/acb6e8cbcae7e2b3c894c8a160088655f8b26642/authmate/authmate.go#L140 type obtainingResult struct { BearerToken *bearer.Token `json:"-"` SecretAccessKey string `json:"secret_access_key"` } ``` I suggest to add token to the `obtain-secret` output **or** add `obtain-token` command to the authmate and reuse the code from `obtain-secret`.
alexvanin added this to the v0.28.0 milestone 2023-06-07 08:47:25 +00:00
dkirillov was assigned by alexvanin 2023-06-07 08:47:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#132
No description provided.