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

feat: Expose user info to session environment variables #2043

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

jopemachine
Copy link
Member

@jopemachine jopemachine commented Apr 22, 2024

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version

Tested manually.

❯ ./backend.ai ssh gPNsIaBh-session
∙ running a temporary sshd proxy at localhost:9922 ...

...

work@main1[gPNsIaBh-session]:~$ env | grep BACKENDAI_
BACKENDAI_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE
BACKENDAI_CLUSTER_HOST=main1
BACKENDAI_CLUSTER_IDX=1
BACKENDAI_CLUSTER_SIZE=1
BACKENDAI_CLUSTER_LOCAL_RANK=0
BACKENDAI_CLUSTER_ROLE=main
BACKENDAI_USER_UUID=f38dea23-50fa-42a0-b5ae-338f5f4693f4
BACKENDAI_KERNEL_ID=6bd9443b-def0-41ab-aea3-aa5280c8e1ab
BACKENDAI_PREOPEN_PORTS=
BACKENDAI_SERVICE_PORTS=ipython:pty:3000,jupyter:http:8070,jupyterlab:http:8090
BACKENDAI_CLUSTER_REPLICAS=main:1
BACKENDAI_KERNEL_IMAGE=cr.backend.ai/stable/python:3.9-ubuntu20.04
BACKENDAI_SESSION_NAME=gPNsIaBh-session
BACKENDAI_USER_EMAIL=admin@lablup.com
BACKENDAI_USER_NAME=admin
BACKENDAI_CLUSTER_HOSTS=main1
BACKENDAI_SESSION_ID=95d866b4-16fb-48f1-a260-db8ee1bd1d68

@github-actions github-actions bot added comp:manager Related to Manager component size:S 10~30 LoC labels Apr 22, 2024
@jopemachine jopemachine changed the title feat: Expose user info to environment variables feat: Expose user info to session environment variables Apr 22, 2024
@achimnol achimnol added this to the 24.03 milestone Apr 22, 2024
@achimnol achimnol added this pull request to the merge queue Apr 22, 2024
Merged via the queue into main with commit 4f39048 Apr 22, 2024
30 checks passed
@achimnol achimnol deleted the feat/expose-userinfo-to-env-var branch April 22, 2024 16:30
achimnol pushed a commit that referenced this pull request Apr 22, 2024
Backported-from: main (24.09)
Backported-to: 24.03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component size:S 10~30 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants