Skip to content
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

Use subnet api key instead of license #3876

Merged
merged 5 commits into from
Dec 9, 2021

Conversation

anjalshireesh
Copy link
Contributor

@anjalshireesh anjalshireesh commented Nov 30, 2021

The earlier approach of using a license token for communicating with
SUBNET is being replaced with a simpler mechanism of api keys. Unlike
the license which is a JWT token, these api keys will be simple UUID
tokens, and don't have any embedded information in them. SUBNET would
generate the api key on cluster registration, and return in the api
response. mc then stores it in the subnet api_key config of minio,
to be used for subsequent communication with SUBNET.

In case the api_key is not available in config, but the cluster's
license is available, it will be used as auth in the subnet api call,
and api_key will be set after the call succeeds. This will help in
smooth migration from older versions of minio.

@anjalshireesh anjalshireesh marked this pull request as ready for review December 3, 2021 10:02
@anjalshireesh
Copy link
Contributor Author

Depends on minio/minio#13793

cmd/subnet-utils.go Outdated Show resolved Hide resolved
cmd/admin-subnet-register.go Outdated Show resolved Hide resolved
cmd/admin-subnet-register.go Outdated Show resolved Hide resolved
cmd/admin-subnet-register.go Outdated Show resolved Hide resolved
cmd/admin-subnet-register.go Outdated Show resolved Hide resolved
cmd/admin-subnet-register.go Outdated Show resolved Hide resolved
cmd/config-v10.go Outdated Show resolved Hide resolved
The earlier approach of using a license token for communicating with
SUBNET is being replaced with a simpler mechanism of api keys. Unlike
the license which is a JWT token, these api keys will be simple UUID
tokens, and don't have any embedded information in them. SUBNET would
generate the api key on cluster registration, and return in the api
response. mc then stores it in the `subnet api_key` config of minio,
to be used for subsequent communication with SUBNET.

In case the api_key is not available in config, but the cluster's
license is available, it will be used as auth in the subnet api call,
and api_key will be set after the call succeeds. This will help in
smooth migration from older versions of minio.
@harshavardhana harshavardhana merged commit b6c50a9 into minio:master Dec 9, 2021
@anjalshireesh anjalshireesh deleted the api-keys branch December 10, 2021 07:44
adfost pushed a commit to adfost/mc that referenced this pull request Oct 28, 2022
The earlier approach of using a license token for communicating with
SUBNET is being replaced with a simpler mechanism of API keys. Unlike
the license which is a JWT token, these API keys will be simple UUID
tokens, and don't have any embedded information in them. SUBNET would
generate the API key on cluster registration, and return in the API
response. mc then stores it in the `subnet api_key` config of minio,
to be used for subsequent communication with SUBNET.

In case the api_key is not available in the config, but the cluster's
license is available, it will be used as auth in the subnet API call,
and api_key will be set after the call succeeds. This will help in
smooth migration from older versions of MinIO.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants